~jayvdb/testscenarios/fix-py3-tests

« back to all changes in this revision

Viewing changes to lib/testscenarios/scenarios.py

  • Committer: John Vandenberg
  • Author(s): Robert Collins
  • Date: 2015-04-26 04:43:40 UTC
  • Revision ID: jayvdb@gmail.com-20150426044340-bwwocyugr4x9927i
Import pypi release 0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    :param test: The test to apply the scenario to. This test is unaltered.
44
44
    :return: A new test cloned from test, with the scenario applied.
45
45
    """
46
 
    (name, parameters) = scenario
 
46
    name, parameters = scenario
47
47
    scenario_suffix = '(' + name + ')'
48
48
    newtest = clone_test_with_new_id(test,
49
49
        test.id() + scenario_suffix)