aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/tests/unit
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-03-23 08:36:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-23 08:36:29 +0000
commit94431babb856f079812aa518ee562f763057263a (patch)
tree4c0902540dbe8cf5fe23acde2f454d733ff734c4 /yardstick/tests/unit
parent9875504ba3aead6bdabd12adb1268d0a44f387dd (diff)
parentc17d65bc5f620328079a6905ebcdd73138685d5f (diff)
Merge "Make "Scenario" class abstract"
Diffstat (limited to 'yardstick/tests/unit')
-rw-r--r--yardstick/tests/unit/benchmark/scenarios/test_base.py5
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):