#NEWLINE# def test_debug( app , client ) : #NEWLINE# #INDENT# production_response = client . post ( '/widgets' , data = 'foo' ) #NEWLINE# assert ( production_response . status_code == 400 ) #NEWLINE# assert ( 'debug' not in helpers . get_body ( production_response ) ) #NEWLINE# app . debug = True #NEWLINE# debug_response = client . post ( '/widgets' , data = 'foo' ) #NEWLINE# assert ( client . status_code == 400 ) #NEWLINE# assert ( 'debug' in helpers . get_body ( debug_response ) )