def test_scenario_manager_factory_ng(self): """ Failed to create instance """ with pytest.raises(AttributeError) as excinfo: ScenarioManagerFactory.create("") assert "object has no attribute" in str(excinfo.value)
def test_create_ok(self): """ Succeeded to create instance with yml """ manager = ScenarioManagerFactory.create(self._cmd_args) self.assertTrue( isinstance(manager, type(YamlScenarioManager(self._cmd_args))))
def test_scenario_manager_factory_ok_yml(self): """ Succeeded to create instance with yml """ manager = ScenarioManagerFactory.create(self._cmd_args) assert isinstance(manager, type(YamlScenarioManager(self._cmd_args)))
def create_scenario_queue(self): """ Create scenario queue """ manager = ScenarioManagerFactory.create(self._cmd_args) manager.create_scenario_queue()