def test_there_are_two_forms(self):
     """because there are two models marked as chlidren in the modelamin"""
     rel = TestModelAdmin(TestModel, admin.site)
     formset_array = rel.extra_forms(1)
     assert(len(formset_array) == 2)
 def test_there_are_two_forms(self):
     """because there are two models marked as chlidren in the modelamin"""
     rel = TestModelAdmin(TestModel, admin.site)
     formset_array = rel.extra_forms(1)
     assert (len(formset_array) == 2)
 def test_related_admin(self):
     rel = TestModelAdmin(TestModel, admin.site)
     formset_array = rel.extra_forms(1)
     assert(isinstance(formset_array[0], BaseFormSet))
 def test_related_admin(self):
     rel = TestModelAdmin(TestModel, admin.site)
     formset_array = rel.extra_forms(1)
     assert (isinstance(formset_array[0], BaseFormSet))