Hide Forgot
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/use-testscenarios. Description: Python's testscenarios support allows us to remove boiler plate code in some tests, and in other cases to report more unique errors. An example scenario test: +++++ from testscenarios import TestWithScenarios scenario1 = ('basic', {'attribute': 'value'}) scenario2 = ('advanced', {'attribute': 'value2'}) class SampleWithScenarios(TestWithScenarios): scenarios = [scenario1, scenario2] def test_demo(self): self.assertIsInstance(self.attribute, str) +++++ This blueprint is to track changes which are converting tests to scenarios. Specification URL (additional information): None