#NEWLINE# def test_child_processes_are_killed_on_sigint( self ) : #NEWLINE# #INDENT# process = self . _start_sensor_container ( ) #NEWLINE# eventlet . sleep ( 3 ) #NEWLINE# self . assertProcessIsRunning ( process = process ) #NEWLINE# pp = psutil . Process ( process . pid ) #NEWLINE# children_pp = pp . children ( ) #NEWLINE# self . assertEqual ( pp . cmdline ( ) [ 1 : ] , CMD ) #NEWLINE# self . assertEqual ( len ( children_pp ) , 1 ) #NEWLINE# process . send_signal ( signal . SIGINT ) #NEWLINE# eventlet . sleep ( ( PROCESS_EXIT_TIMEOUT + 1 ) ) #NEWLINE# self . assertProcessExited ( proc = pp ) #NEWLINE# self . assertProcessExited ( proc = children_pp [ 0 ] ) #NEWLINE# self . remove_process ( process = process )