#NEWLINE# @ test . raises ( SystemExit ) #NEWLINE# def test_close_with_code( self ) : #NEWLINE# #INDENT# app = self . make_app ( APP , exit_on_close = True ) #NEWLINE# app . setup ( ) #NEWLINE# app . run ( ) #NEWLINE# try : #NEWLINE# #INDENT# app . close ( 114 ) #NEWLINE# #UNINDENT# except SystemExit as e : #NEWLINE# #INDENT# self . eq ( e . code , 114 ) #NEWLINE# raise