#NEWLINE# def test_pf_verbs_add_bad_data( self ) : #NEWLINE# #INDENT# with self . app as c : #NEWLINE# #INDENT# with c . session_transaction ( ) as sess : #NEWLINE# #INDENT# self . setup_admin_login ( sess ) #NEWLINE# #UNINDENT# response = c . get ( '/manage/verbs' ) #NEWLINE# data = { #NEWLINE# #INDENT# 'name' : 'GET' , #NEWLINE# 'active' : True , #NEWLINE# #UNINDENT# } #NEWLINE# response = c . post ( '/manage/verbs' , data = data , follow_redirects = True ) #NEWLINE# #UNINDENT# self . assertIn ( 'There was a form validation error, please check the required values and try again.' , response . data , 'Incorrect flash message after add bad data' )