Пример #1
0
 def test_stop_socat_console_fail_nopid(self, mock_stop, mock_log_warning):
     mock_stop.side_effect = exception.NoConsolePid('/tmp/blah')
     console_utils.stop_socat_console(self.info['uuid'])
     mock_stop.assert_called_once_with(self.info['uuid'])
     # LOG.warning() is called when _stop_console() raises NoConsolePid
     self.assertTrue(mock_log_warning.called)
Пример #2
0
 def test_stop_socat_console_fail_nopid(self, mock_stop, mock_log_warning):
     mock_stop.side_effect = exception.NoConsolePid('/tmp/blah')
     console_utils.stop_socat_console(self.info['uuid'])
     mock_stop.assert_called_once_with(self.info['uuid'])
     # LOG.warning() is called when _stop_console() raises NoConsolePid
     self.assertTrue(mock_log_warning.called)
Пример #3
0
 def test_stop_socat_console(self, mock_stop):
     console_utils.stop_socat_console(self.info['uuid'])
     mock_stop.assert_called_once_with(self.info['uuid'])
Пример #4
0
 def test_stop_socat_console(self, mock_stop):
     console_utils.stop_socat_console(self.info['uuid'])
     mock_stop.assert_called_once_with(self.info['uuid'])