コード例 #1
0
 def test_handle_mutate_config(self, mock_conf, mock_os_kill):
     driver_agent._handle_mutate_config(1, 2)
     mock_conf.mutate_config_files.assert_called_once()
     os_calls = [mock.call(1, signal.SIGHUP), mock.call(2, signal.SIGHUP)]
     mock_os_kill.assert_has_calls(os_calls, any_order=True)
コード例 #2
0
 def test_handle_mutate_config(self, mock_conf, mock_os_kill):
     driver_agent._handle_mutate_config(1, 2)
     mock_conf.mutate_config_files.assert_called_once()
     os_calls = [mock.call(1, signal.SIGHUP), mock.call(2, signal.SIGHUP)]
     mock_os_kill.assert_has_calls(os_calls, any_order=True)