def test_process_1_no_kill_with_wrong_case(self):
     process_handler.terminate_processes_matching_cmd_line('/a/b/C',
                                                           kill=True)
     self.assertEqual(0, self.mock.terminate_process.call_count)
 def test_process_2_with_kill(self):
     process_handler.terminate_processes_matching_cmd_line('/d', kill=True)
     self.mock.terminate_process.assert_has_calls([
         mock.call(2, True),
     ])
 def test_no_process_kill(self):
     process_handler.terminate_processes_matching_cmd_line('not_exist',
                                                           kill=True)
     self.assertEqual(0, self.mock.terminate_process.call_count)
 def test_process_2_with_terminate(self):
     process_handler.terminate_processes_matching_cmd_line('/d')
     self.mock.terminate_process.assert_has_calls([
         mock.call(2, False),
     ])