diff --git a/tests/backends/postgresql/test_server_side_cursors.py b/tests/backends/postgresql/test_server_side_cursors.py index 705e798c23..5efc82da58 100644 --- a/tests/backends/postgresql/test_server_side_cursors.py +++ b/tests/backends/postgresql/test_server_side_cursors.py @@ -53,7 +53,7 @@ class ServerSideCursorsPostgres(TestCase): self.assertFalse(cursor.is_holdable) self.assertFalse(cursor.is_binary) - def asserNotUsesCursor(self, queryset): + def assertNotUsesCursor(self, queryset): self.assertUsesCursor(queryset, num_expected=0) def test_server_side_cursor(self): @@ -98,4 +98,4 @@ class ServerSideCursorsPostgres(TestCase): del persons # Close server-side cursor with self.override_db_setting(DISABLE_SERVER_SIDE_CURSORS=True): - self.asserNotUsesCursor(Person.objects.iterator()) + self.assertNotUsesCursor(Person.objects.iterator())