~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-04-01 04:41:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5128.
  • Revision ID: mbp@sourcefrog.net-20100401044118-shyctqc02ob08ngz
ignore .testrepository

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006, 2007 Canonical Ltd
2
2
# Authors: Robert Collins <robert.collins@canonical.com>
3
3
#          and others
4
4
#
33
33
                           )
34
34
from bzrlib.remote import RemoteBranchFormat, RemoteBzrDirFormat
35
35
from bzrlib.tests import test_server
36
 
from bzrlib.tests.per_controldir.test_controldir import TestCaseWithControlDir
 
36
from bzrlib.tests.per_bzrdir.test_bzrdir import TestCaseWithBzrDir
37
37
from bzrlib.transport import memory
38
38
 
39
39
 
60
60
    return result
61
61
 
62
62
 
63
 
class TestCaseWithBranch(TestCaseWithControlDir):
64
 
    """This helper will be parameterised in each per_branch test."""
 
63
class TestCaseWithBranch(TestCaseWithBzrDir):
 
64
    """This helper will be parameterised in each branch_implementation test."""
65
65
 
66
66
    def setUp(self):
67
67
        super(TestCaseWithBranch, self).setUp()
74
74
 
75
75
    def make_branch(self, relpath, format=None):
76
76
        if format is not None:
77
 
            return TestCaseWithControlDir.make_branch(self, relpath, format)
 
77
            return TestCaseWithBzrDir.make_branch(self, relpath, format)
78
78
        repo = self.make_repository(relpath)
79
79
        # fixme RBC 20060210 this isnt necessarily a fixable thing,
80
80
        # Skipped is the wrong exception to raise.
132
132
    # Generate a list of branch formats and their associated bzrdir formats to
133
133
    # use.
134
134
    combinations = [(format, format._matchingbzrdir) for format in
135
 
         BranchFormat.get_formats() + _legacy_formats]
 
135
         BranchFormat._formats.values() + _legacy_formats]
136
136
    scenarios = make_scenarios(
137
137
        # None here will cause the default vfs transport server to be used.
138
138
        None,
165
165
        'branch',
166
166
        'break_lock',
167
167
        'check',
168
 
        'config',
169
168
        'create_checkout',
170
169
        'create_clone',
171
170
        'commit',