1
0
mirror of https://github.com/django/django.git synced 2025-07-19 09:09:13 +00:00

[1.9.x] Removed unnecessary filter kwarg from .get() in a test.

Backport of 38086c83aca881aa72bc2eba1e6eadaa76529ed0 from master
This commit is contained in:
Adam Alton 2016-03-14 17:59:19 +00:00 committed by Tim Graham
parent bf7a35c329
commit b50e4ffe7e

View File

@ -226,10 +226,8 @@ class ModelInheritanceDataTests(TestCase):
def test_inherited_multiple_objects_returned_exception(self): def test_inherited_multiple_objects_returned_exception(self):
# MultipleObjectsReturned is also inherited. # MultipleObjectsReturned is also inherited.
self.assertRaises( with self.assertRaises(Place.MultipleObjectsReturned):
Place.MultipleObjectsReturned, Restaurant.objects.get()
Restaurant.objects.get, id__lt=12321
)
def test_related_objects_for_inherited_models(self): def test_related_objects_for_inherited_models(self):
# Related objects work just as they normally do. # Related objects work just as they normally do.