

def test_second_form_partially_filled_2(self):
    data = {
        'choices-TOTAL_FORMS': '3',
        'choices-INITIAL_FORMS': '0',
        'choices-MAX_NUM_FORMS': '0',
        'choices-0-choice': 'Calexico',
        'choices-0-votes': '100',
        'choices-1-choice': 'The Decemberists',
        'choices-1-votes': '',
        'choices-2-choice': '',
        'choices-2-votes': '',
    }
    ChoiceFormSet = formset_factory(Choice, extra=3)
    formset = ChoiceFormSet(data, auto_id=False, prefix='choices')
    self.assertFalse(formset.is_valid())
    self.assertEqual(self.errors, [{
        
    }, {
        'votes': ['This field is required.'],
    }, {
        
    }])

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/forms/tests/formsets.py FormsFormsetTestCase.test_second_form_partially_filled_2/VarMisuse@102/199 `formset`->`self`