#NEWLINE# def test_invalid( self ) : #NEWLINE# #INDENT# self . data . update ( { #NEWLINE# #INDENT# 'form-0-title' : 'first title' , #NEWLINE# 'form-0-pub_date' : '' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . post ( '/edit/formsets/' , self . data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertContains ( response , 'ERROR' )