~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    branch as _mod_branch,
29
29
    bzrdir,
30
30
    config,
 
31
    controldir,
31
32
    errors,
32
33
    symbol_versioning,
33
34
    tests,
244
245
        # but open_downlevel will work
245
246
        self.assertEqual(
246
247
            format.open(dir),
247
 
            bzrdir.BzrDir.open(self.get_url()).open_branch(unsupported=True))
 
248
            controldir.ControlDir.open(self.get_url()).open_branch(unsupported=True))
248
249
        # unregister the format
249
250
        self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
250
251
            _mod_branch.BranchFormat.unregister_format, format)
488
489
 
489
490
    def make_branch(self, location, format=None):
490
491
        if format is None:
491
 
            format = bzrdir.format_registry.make_bzrdir('1.9')
 
492
            format = controldir.format_registry.make_bzrdir('1.9')
492
493
            format.set_branch_format(_mod_branch.BzrBranchFormat8())
493
494
        return tests.TestCaseWithTransport.make_branch(
494
495
            self, location, format=format)