Bug 1041438

Summary: [RFE][nova]: Convert relevant tests to testscenarios
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/use-testscenarios
Whiteboard: upstream_milestone_none upstream_status_unknown upstream_definition_new
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:39:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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