'If the field specified in fk_name is not a ForeignKey, we should get an
exception.'

def test_non_foreign_key_field(self):

    self.assertRaisesRegexp(Exception, "<class    'regressiontests.inline_formsets.models.Child'>    has    no    field    named    'test'", inlineformset_factory, Parent, Child, fk_name='test')
