Commit b5391515 authored by Ramiro Morales's avatar Ramiro Morales
Browse files

Changed test assertion strategy used in 04d9730b.

parent 04d9730b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -106,9 +106,7 @@ class GenericRelationTests(TestCase):
        # Fails with another, ORM-level error
        dev1 = Developer(name='Joe')
        note = Note(note='Deserves promotion', content_object=dev1)
        self.assertRaisesMessage(IntegrityError,
                "generic_relations_regress_note.object_id may not be NULL",
                note.save)
        self.assertRaises(IntegrityError, note.save)

    def test_target_model_len_zero(self):
        """Test for #13085 -- __len__() returns 0"""