1
0
mirror of https://github.com/django/django.git synced 2024-12-24 18:16:19 +00:00

Changed test assertion strategy used in 04d9730.

This commit is contained in:
Ramiro Morales 2013-02-07 16:51:27 -03:00
parent 04d9730b12
commit b5391515cd

View File

@ -106,9 +106,7 @@ class GenericRelationTests(TestCase):
# Fails with another, ORM-level error # Fails with another, ORM-level error
dev1 = Developer(name='Joe') dev1 = Developer(name='Joe')
note = Note(note='Deserves promotion', content_object=dev1) note = Note(note='Deserves promotion', content_object=dev1)
self.assertRaisesMessage(IntegrityError, self.assertRaises(IntegrityError, note.save)
"generic_relations_regress_note.object_id may not be NULL",
note.save)
def test_target_model_len_zero(self): def test_target_model_len_zero(self):
"""Test for #13085 -- __len__() returns 0""" """Test for #13085 -- __len__() returns 0"""