/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/__init__.py

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    
60
60
        result = []
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,
67
 
                })
68
 
            result.append(scenario)
 
62
            result.append(self.create_scenario(workingtree_format,
 
63
                          bzrdir_format))
69
64
        return result
70
65
 
 
66
    def create_scenario(self, workingtree_format, bzrdir_format):
 
67
        """Create a scenario for the specified converter
 
68
 
 
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.
 
73
        """
 
74
        scenario_options = {
 
75
            "transport_server": self._transport_server,
 
76
            "transport_readonly_server": self._transport_readonly_server,
 
77
            "bzrdir_format": bzrdir_format,
 
78
            "workingtree_format": workingtree_format,
 
79
            }
 
80
        return workingtree_format.__class__.__name__, scenario_options
 
81
 
71
82
 
72
83
class TestCaseWithWorkingTree(TestCaseWithBzrDir):
73
84