diff options
author | Gregor Gärtner <code@gregorgaertner.de> | 2022-09-24 11:29:58 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-08 08:07:38 +0200 |
commit | f0c06f8ab7904e1fd082f2de57337f6c7e05f177 (patch) | |
tree | 2073bfe1bb55350d9516f9a54ad7d9895a84ca48 /tests/m2m_and_m2o | |
parent | d795259ea96004df0a2469246229a146307bcd2c (diff) | |
download | django-f0c06f8ab7904e1fd082f2de57337f6c7e05f177.tar.gz |
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'tests/m2m_and_m2o')
-rw-r--r-- | tests/m2m_and_m2o/tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/m2m_and_m2o/tests.py b/tests/m2m_and_m2o/tests.py index 9864ef5b27..2ca945816c 100644 --- a/tests/m2m_and_m2o/tests.py +++ b/tests/m2m_and_m2o/tests.py @@ -28,7 +28,7 @@ class RelatedObjectTests(TestCase): i3.save() i3.cc.add(r) - self.assertQuerysetEqual( + self.assertQuerySetEqual( Issue.objects.filter(client=r.id), [ 1, @@ -36,15 +36,15 @@ class RelatedObjectTests(TestCase): ], lambda i: i.num, ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( Issue.objects.filter(client=g.id), [ 3, ], lambda i: i.num, ) - self.assertQuerysetEqual(Issue.objects.filter(cc__id__exact=g.id), []) - self.assertQuerysetEqual( + self.assertQuerySetEqual(Issue.objects.filter(cc__id__exact=g.id), []) + self.assertQuerySetEqual( Issue.objects.filter(cc__id__exact=r.id), [ 2, @@ -55,7 +55,7 @@ class RelatedObjectTests(TestCase): # These queries combine results from the m2m and the m2o relationships. # They're three ways of saying the same thing. - self.assertQuerysetEqual( + self.assertQuerySetEqual( Issue.objects.filter(Q(cc__id__exact=r.id) | Q(client=r.id)), [ 1, @@ -64,7 +64,7 @@ class RelatedObjectTests(TestCase): ], lambda i: i.num, ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( Issue.objects.filter(cc__id__exact=r.id) | Issue.objects.filter(client=r.id), [ @@ -74,7 +74,7 @@ class RelatedObjectTests(TestCase): ], lambda i: i.num, ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( Issue.objects.filter(Q(client=r.id) | Q(cc__id__exact=r.id)), [ 1, |