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