def test_kindly_end_kills_on_terminate_timeout(self): mock_popen = make_mock_popen(terminate_raise=True) kindly_end(mock_popen) mock_popen.terminate.assert_called() mock_popen.kill.assert_called()
def test_kindly_end_terminates(self): mock_popen = make_mock_popen() kindly_end(mock_popen) mock_popen.terminate.assert_called()