'Child has two ForeignKeys to Parent, so if we don\'t specify which one
to use for the inline formset, we should get an exception.'

def test_exception_on_unspecified_foreign_key(self):

    self.assertRaisesRegexp(Exception, "<class    'regressiontests.inline_formsets.models.Child'>    has    more    than    1    ForeignKey    to    <class    'regressiontests.inline_formsets.models.Parent'>", inlineformset_factory, Parent, Child)
