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:
parent
bf7a35c329
commit
b50e4ffe7e
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user