def test_init_database(self):
        formset = self.NormalFormset(self.data)
        self.assertTrue(formset.is_valid())
        self.assertEqual(len(formset.save()), 4)
Add test data to database via formset
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/model_formsets_regress/tests.py/FormfieldShouldDeleteFormTests.test_init_database