diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-03-23 08:36:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-23 08:36:29 +0000 |
commit | 94431babb856f079812aa518ee562f763057263a (patch) | |
tree | 4c0902540dbe8cf5fe23acde2f454d733ff734c4 /yardstick/tests/unit | |
parent | 9875504ba3aead6bdabd12adb1268d0a44f387dd (diff) | |
parent | c17d65bc5f620328079a6905ebcdd73138685d5f (diff) |
Merge "Make "Scenario" class abstract"
Diffstat (limited to 'yardstick/tests/unit')
-rw-r--r-- | yardstick/tests/unit/benchmark/scenarios/test_base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/tests/unit/benchmark/scenarios/test_base.py b/yardstick/tests/unit/benchmark/scenarios/test_base.py index 985338532..6e2cff425 100644 --- a/yardstick/tests/unit/benchmark/scenarios/test_base.py +++ b/yardstick/tests/unit/benchmark/scenarios/test_base.py @@ -85,6 +85,11 @@ class ScenarioTestCase(ut_base.BaseUnitTestCase): self.assertEqual('No such scenario type %s' % wrong_scenario_name, str(exc.exception)) + def test_scenario_abstract_class(self): + # pylint: disable=abstract-class-instantiated + with self.assertRaises(TypeError): + base.Scenario() + class IterScenarioClassesTestCase(ut_base.BaseUnitTestCase): |