From d795259ea96004df0a2469246229a146307bcd2c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 7 Oct 2022 13:05:35 +0200 Subject: Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e. --- tests/model_inheritance/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/model_inheritance') diff --git a/tests/model_inheritance/tests.py b/tests/model_inheritance/tests.py index 882f2999e2..9266ca7738 100644 --- a/tests/model_inheritance/tests.py +++ b/tests/model_inheritance/tests.py @@ -68,7 +68,7 @@ class ModelInheritanceTests(TestCase): # Even though p.supplier for a Place 'p' (a parent of a Supplier), a # Restaurant object cannot access that reverse relation, since it's not # part of the Place-Supplier Hierarchy. - self.assertQuerysetEqual(Place.objects.filter(supplier__name="foo"), []) + self.assertSequenceEqual(Place.objects.filter(supplier__name="foo"), []) msg = ( "Cannot resolve keyword 'supplier' into field. Choices are: " "address, chef, chef_id, id, italianrestaurant, lot, name, " @@ -93,7 +93,7 @@ class ModelInheritanceTests(TestCase): getattr(post, "attached_%(class)s_set") def test_model_with_distinct_related_query_name(self): - self.assertQuerysetEqual( + self.assertSequenceEqual( Post.objects.filter(attached_model_inheritance_comments__is_spam=True), [] ) @@ -146,7 +146,7 @@ class ModelInheritanceTests(TestCase): self.assertEqual(s.titles.related_val, (s.id,)) # Higher level test for correct query values (title foof not # accidentally found). - self.assertQuerysetEqual(s.titles.all(), []) + self.assertSequenceEqual(s.titles.all(), []) def test_update_parent_filtering(self): """ -- cgit v1.2.1