示例#1
0
 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)
示例#2
0
 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))))
示例#3
0
 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)))
示例#4
0
 def create_scenario_queue(self):
     """
     Create scenario queue
     """
     manager = ScenarioManagerFactory.create(self._cmd_args)
     manager.create_scenario_queue()