#NEWLINE# def test_empty_forms_are_unbound( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'form-TOTAL_FORMS' : '1' , #NEWLINE# 'form-INITIAL_FORMS' : '0' , #NEWLINE# 'form-0-title' : 'Test' , #NEWLINE# 'form-0-pub_date' : '1904-06-16' , #NEWLINE# #UNINDENT# } #NEWLINE# unbound_formset = ArticleFormSet ( ) #NEWLINE# bound_formset = ArticleFormSet ( data ) #NEWLINE# empty_forms = [ ] #NEWLINE# empty_forms . append ( unbound_formset . empty_form ) #NEWLINE# empty_forms . append ( bound_formset . empty_form ) #NEWLINE# self . assertFalse ( empty_forms [ 0 ] . is_bound ) #NEWLINE# self . assertFalse ( empty_forms [ 1 ] . is_bound ) #NEWLINE# self . assertHTMLEqual ( empty_forms [ 0 ] . as_p ( ) , empty_forms [ 1 ] . as_p ( ) )