'If we specify fk_name, but it isn\'t a ForeignKey from the child model
to the parent model, we should get an exception.'

def test_fk_name_not_foreign_key_field_from_child(self):

    self.assertRaises(Exception, "fk_name    'school'    is    not    a    ForeignKey    to    <class    'regressiontests.inline_formsets.models.Parent'>", inlineformset_factory, Parent, Child, fk_name='school')
