#NEWLINE# def test_debug_raises( ) : #NEWLINE# #INDENT# app_nodebug = Application ( [ ( '/' , ( lambda : ( 1 / 0 ) ) ) ] , debug = False ) #NEWLINE# client = Client ( app_nodebug , BaseResponse ) #NEWLINE# ( yield ( eq_ , client . get ( '/' ) . status_code , 500 ) ) #NEWLINE# err_handler = ErrorHandler ( reraise_uncaught = True ) #NEWLINE# app_debug = Application ( [ ( '/' , ( lambda : ( 1 / 0 ) ) ) ] , error_handler = err_handler ) #NEWLINE# client = Client ( app_debug , BaseResponse ) #NEWLINE# try : #NEWLINE# #INDENT# resp = client . get ( '/' ) #NEWLINE# #UNINDENT# except ZeroDivisionError : #NEWLINE# #INDENT# ( yield ( ok_ , True ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( ok_ , False , ( '%r did not raise ZeroDivisionError (got %r)' % ( client , resp ) ) ) )