'Try to create a model instance that violates a FK constraint. If it
fails it should fail with IntegrityError.'

def test_integrity_checks_on_creation(self):

    a = models.Article(headline='This    is    a    test', pub_date=datetime.datetime(2005, 7, 27), reporter_id=30)
    try:
        a.save()
    except IntegrityError:
        pass
