61
61
for workingtree_format, bzrdir_format in formats:
62
scenario = (workingtree_format.__class__.__name__, {
63
"transport_server":self._transport_server,
64
"transport_readonly_server":self._transport_readonly_server,
65
"bzrdir_format":bzrdir_format,
66
"workingtree_format":workingtree_format,
68
result.append(scenario)
62
result.append(self.create_scenario(workingtree_format,
66
def create_scenario(self, workingtree_format, bzrdir_format):
67
"""Create a scenario for the specified converter
69
:param workingtree_format: The particular workingtree format to test.
70
:param bzrdir_format: The bzrdir format to test.
71
:return: a (name, options) tuple, where options is a dict of values
72
to be used as members of the TestCase.
75
"transport_server": self._transport_server,
76
"transport_readonly_server": self._transport_readonly_server,
77
"bzrdir_format": bzrdir_format,
78
"workingtree_format": workingtree_format,
80
return workingtree_format.__class__.__name__, scenario_options
72
83
class TestCaseWithWorkingTree(TestCaseWithBzrDir):