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/generic_relations | |
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/generic_relations')
-rw-r--r-- | tests/generic_relations/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/generic_relations/tests.py b/tests/generic_relations/tests.py index 1ee14f5381..29307237a2 100644 --- a/tests/generic_relations/tests.py +++ b/tests/generic_relations/tests.py @@ -122,7 +122,7 @@ class GenericRelationsTests(TestCase): qs = TaggedItem.objects.filter( Q(animal__isnull=False) | Q(manualpk__id=1) ).order_by("tag") - self.assertQuerysetEqual(qs, ["hairy", "mpk", "yellow"], lambda x: x.tag) + self.assertQuerySetEqual(qs, ["hairy", "mpk", "yellow"], lambda x: x.tag) def test_exclude_generic_relations(self): """ @@ -199,7 +199,7 @@ class GenericRelationsTests(TestCase): If you delete an object with an explicit Generic relation, the related objects are deleted when the source object is deleted. """ - self.assertQuerysetEqual( + self.assertQuerySetEqual( TaggedItem.objects.all(), [ ("fatty", Vegetable, self.bacon.pk), @@ -211,7 +211,7 @@ class GenericRelationsTests(TestCase): ) self.lion.delete() - self.assertQuerysetEqual( + self.assertQuerySetEqual( TaggedItem.objects.all(), [ ("fatty", Vegetable, self.bacon.pk), @@ -228,7 +228,7 @@ class GenericRelationsTests(TestCase): TaggedItem.objects.create(content_object=self.quartz, tag="clearish") quartz_pk = self.quartz.pk self.quartz.delete() - self.assertQuerysetEqual( + self.assertQuerySetEqual( TaggedItem.objects.all(), [ ("clearish", Mineral, quartz_pk), @@ -252,7 +252,7 @@ class GenericRelationsTests(TestCase): tag.delete() self.assertSequenceEqual(self.lion.tags.all(), [self.yellow]) - self.assertQuerysetEqual( + self.assertQuerySetEqual( TaggedItem.objects.all(), [ ("fatty", Vegetable, self.bacon.pk), |