summaryrefslogtreecommitdiff
path: root/tests/db_functions/text/test_left.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_functions/text/test_left.py')
-rw-r--r--tests/db_functions/text/test_left.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/db_functions/text/test_left.py b/tests/db_functions/text/test_left.py
index 8871f9ac79..aa2944c7e3 100644
--- a/tests/db_functions/text/test_left.py
+++ b/tests/db_functions/text/test_left.py
@@ -13,12 +13,12 @@ class LeftTests(TestCase):
def test_basic(self):
authors = Author.objects.annotate(name_part=Left("name", 5))
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["John ", "Rhond"], lambda a: a.name_part
)
# If alias is null, set it to the first 2 lower characters of the name.
Author.objects.filter(alias__isnull=True).update(alias=Lower(Left("name", 2)))
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["smithj", "rh"], lambda a: a.alias
)
@@ -30,6 +30,6 @@ class LeftTests(TestCase):
authors = Author.objects.annotate(
name_part=Left("name", Value(3, output_field=IntegerField()))
)
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["Joh", "Rho"], lambda a: a.name_part
)