diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-07 13:05:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 13:05:35 +0200 |
commit | d795259ea96004df0a2469246229a146307bcd2c (patch) | |
tree | 96d797dacdb7b4c68cd32afc1f2ed6f15e0a2bcd /tests/model_inheritance | |
parent | 564b317fb53e9925b86ca5ef5d3bbcf99387602c (diff) | |
download | django-d795259ea96004df0a2469246229a146307bcd2c.tar.gz |
Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate.
Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e.
Diffstat (limited to 'tests/model_inheritance')
-rw-r--r-- | tests/model_inheritance/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): """ |