def test_exception_on_unspecified_foreign_key(self):
        self.assertRaisesErrorWithMessage(Exception,
            "<class 'regressiontests.inline_formsets.models.Child'> has more than 1 ForeignKey to <class 'regressiontests.inline_formsets.models.Parent'>",
            inlineformset_factory, Parent, Child
        )
Child has two ForeignKeys to Parent, so if we don't specify which one
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/inline_formsets/tests.py/InlineFormsetFactoryTest.test_exception_on_unspecified_foreign_key