For a class whose tests should be repeated in varying scenarios, set a
scenarios
member to a list of scenarios where it should be repeated.
This is similar to the interface provided by <http://launchpad.net/testscenarios/>.
Function | load_tests_apply_scenarios | Multiply tests depending on their 'scenarios' attribute. |
Function | multiply_tests_by_their_scenarios | Multiply the tests in the given suite by their declared scenarios. |
This can be assigned to 'load_tests' in any test module to make this automatically work across tests in the module.
Each test must have a 'scenarios' attribute which is a list of (name, params) pairs.
Parameters | some_tests | TestSuite or Test. |
into_suite | A TestSuite into which the resulting tests will be inserted. |