def _get_mock_runner_obj(self, pack=None, sandbox=None): runner = python_runner.get_runner() runner.execution = MOCK_EXECUTION runner.action = self._get_mock_action_obj() runner.runner_parameters = {} if pack: runner.action.pack = pack if sandbox is not None: runner._sandbox = sandbox return runner
def test_runner_creation(self): runner = python_runner.get_runner() self.assertIsNotNone(runner, "Creation failed. No instance.") self.assertEqual(type(runner), python_runner.PythonRunner, "Creation failed. No instance.")
def test_runner_creation(self): runner = python_runner.get_runner() self.assertTrue(runner is not None, 'Creation failed. No instance.') self.assertEqual(type(runner), python_runner.PythonRunner, 'Creation failed. No instance.')
def test_runner_creation(self): runner = python_runner.get_runner() self.assertTrue(runner is not None, 'Creation failed. No instance.') self.assertEqual(type(runner), python_runner.PythonRunner, 'Creation failed. No instance.')