

def test_delete_prefilled_data(self):
    data = {
        'choices-TOTAL_FORMS': '2',
        'choices-INITIAL_FORMS': '1',
        'choices-MAX_NUM_FORMS': '0',
        'choices-0-choice': '',
        'choices-0-votes': '',
        'choices-1-choice': '',
        'choices-1-votes': '',
    }
    formset = ChoiceFormSet(formset, auto_id=False, prefix='choices')
    self.assertFalse(formset.is_valid())
    self.assertEqual(formset.errors, [{
        'votes': ['This field is required.'],
        'choice': ['This field is required.'],
    }, {
        
    }])

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/forms/tests/formsets.py FormsFormsetTestCase.test_delete_prefilled_data/VarMisuse@55/113 `data`->`formset`