def test_non_foreign_key_field(self):
        self.assertRaisesErrorWithMessage(Exception,
            "<class 'regressiontests.inline_formsets.models.Child'> has no field named 'test'",
            inlineformset_factory, Parent, Child, fk_name='test'
        )
If the field specified in fk_name is not a ForeignKey, we should get an
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/inline_formsets/tests.py/InlineFormsetFactoryTest.test_non_foreign_key_field