diff options
author | Mads Jensen <mje@inducks.org> | 2016-09-10 11:36:27 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-09-13 10:07:37 -0400 |
commit | 0c1f71635f8a3f32195e1573fe929c7d88a78511 (patch) | |
tree | 4d8127fde3634dfd3d4ad8451cee140d34070821 /tests/model_inheritance | |
parent | 8b050cf9dcad3db39cc9ef44906bfc39f5aa3d25 (diff) | |
download | django-0c1f71635f8a3f32195e1573fe929c7d88a78511.tar.gz |
Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual().
Diffstat (limited to 'tests/model_inheritance')
-rw-r--r-- | tests/model_inheritance/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/model_inheritance/tests.py b/tests/model_inheritance/tests.py index 7362c446ba..657e8fa297 100644 --- a/tests/model_inheritance/tests.py +++ b/tests/model_inheritance/tests.py @@ -32,12 +32,11 @@ class ModelInheritanceTests(TestCase): # The children inherit the Meta class of their parents (if they don't # specify their own). - self.assertQuerysetEqual( + self.assertSequenceEqual( Worker.objects.values("name"), [ {"name": "Barney"}, {"name": "Fred"}, ], - lambda o: o ) # Since Student does not subclass CommonInfo's Meta, it has the effect @@ -313,11 +312,10 @@ class ModelInheritanceDataTests(TestCase): def test_values_works_on_parent_model_fields(self): # The values() command also works on fields from parent models. - self.assertQuerysetEqual( + self.assertSequenceEqual( ItalianRestaurant.objects.values("name", "rating"), [ {"rating": 4, "name": "Ristorante Miron"}, ], - lambda o: o ) def test_select_related_works_on_parent_model_fields(self): |