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

Backport of 38086c83ac from master
This commit is contained in:
Adam Alton 2016-03-14 17:59:19 +00:00 committed by Tim Graham
parent 1a1a8235df
commit 5bd01773be
1 changed files with 2 additions and 4 deletions

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.