@patch.object(hub.HubController, 'is_running')
    @patch.object(hub.HubController, 'start')
    def test_start_while_running(self, mock_start, mock_is_running):
        mock_is_running.return_value = True
        mock_start.return_value = True
        with patch('sys.stdout', devnull):
            with self.assertRaises(SystemExit) as cm:
                shell.main(['start'])

        self.assertEqual(cm.exception.code, 1)
Return a unique Event ID string.
dataset/ETHPy150Open brady-vitrano/dsgrid/dsgrid/tests/test_shell.py/TestShell.test_start_while_running--crossover with--dataset/ETHPy150Open google/grr/grr/lib/log.py/GrrApplicationLogger.GetNewEventId