#NEWLINE# def test_ordering_blank_fieldsets( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'choices-TOTAL_FORMS' : '3' , #NEWLINE# 'choices-INITIAL_FORMS' : '0' , #NEWLINE# 'choices-MAX_NUM_FORMS' : '0' , #NEWLINE# #UNINDENT# } #NEWLINE# ChoiceFormSet = formset_factory ( Choice , can_order = True ) #NEWLINE# formset = ChoiceFormSet ( data , auto_id = False , prefix = 'choices' ) #NEWLINE# self . assertTrue ( formset . is_valid ( ) ) #NEWLINE# form_output = [ ] #NEWLINE# for form in formset . ordered_forms : #NEWLINE# #INDENT# form_output . append ( form . cleaned_data ) #NEWLINE# #UNINDENT# self . assertEqual ( form_output , [ ] )