summaryrefslogtreecommitdiff
path: root/tests/db_functions/text/test_right.py
diff options
context:
space:
mode:
authorGregor Gärtner <code@gregorgaertner.de>2022-09-24 11:29:58 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-08 08:07:38 +0200
commitf0c06f8ab7904e1fd082f2de57337f6c7e05f177 (patch)
tree2073bfe1bb55350d9516f9a54ad7d9895a84ca48 /tests/db_functions/text/test_right.py
parentd795259ea96004df0a2469246229a146307bcd2c (diff)
downloaddjango-f0c06f8ab7904e1fd082f2de57337f6c7e05f177.tar.gz
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'tests/db_functions/text/test_right.py')
-rw-r--r--tests/db_functions/text/test_right.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/db_functions/text/test_right.py b/tests/db_functions/text/test_right.py
index 8c271fcf7d..126f1583a5 100644
--- a/tests/db_functions/text/test_right.py
+++ b/tests/db_functions/text/test_right.py
@@ -13,12 +13,12 @@ class RightTests(TestCase):
def test_basic(self):
authors = Author.objects.annotate(name_part=Right("name", 5))
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["Smith", "honda"], 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(Right("name", 2)))
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["smithj", "da"], lambda a: a.alias
)
@@ -30,6 +30,6 @@ class RightTests(TestCase):
authors = Author.objects.annotate(
name_part=Right("name", Value(3, output_field=IntegerField()))
)
- self.assertQuerysetEqual(
+ self.assertQuerySetEqual(
authors.order_by("name"), ["ith", "nda"], lambda a: a.name_part
)