#NEWLINE# @ test . raises ( exc . CaughtSignal ) #NEWLINE# def test_cement_signal_handler( self ) : #NEWLINE# #INDENT# import signal #NEWLINE# import types #NEWLINE# global app #NEWLINE# app = self . make_app ( 'test' ) #NEWLINE# frame = sys . _getframe ( 0 ) #NEWLINE# try : #NEWLINE# #INDENT# foundation . cement_signal_handler ( signal . SIGTERM , frame ) #NEWLINE# #UNINDENT# except exc . CaughtSignal as e : #NEWLINE# #INDENT# self . eq ( self . signum , signal . SIGTERM ) #NEWLINE# self . ok ( isinstance ( e . frame , types . FrameType ) ) #NEWLINE# raise