#NEWLINE# def test_pf_verbs_deactivate( 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/deactivate/GET' , follow_redirects = True ) #NEWLINE# #UNINDENT# self . assertIn ( 'Get was deactivated successfully' , response . data , 'Incorrect flash message after deactivate' ) #NEWLINE# api_settings = self . db . api_settings . find_one ( ) #NEWLINE# verbs = api_settings . get ( 'verbs' ) #NEWLINE# deactivated = False #NEWLINE# for verb in verbs : #NEWLINE# #INDENT# if ( verb . get ( 'name' ) == 'GET' ) : #NEWLINE# #INDENT# if ( not verb . get ( 'active' ) ) : #NEWLINE# #INDENT# deactivated = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# assert response , 'Verb was not deactivated'