Bug 1041438 - [RFE][nova]: Convert relevant tests to testscenarios
Summary: [RFE][nova]: Convert relevant tests to testscenarios
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/nova...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 16:07 UTC by RHOS Integration
Modified: 2015-03-19 17:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:39:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 16:07:52 UTC
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


Note You need to log in before you can comment on or make changes to this bug.