~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-12 00:01:34 UTC
  • mfrom: (5582.10.97 weave-plugin)
  • Revision ID: pqm@pqm.ubuntu.com-20110312000134-exy10w8ctjs8tpiu
Tags: upstream-2.4.0~beta1~bzr5718
(jelmer) Add Prober.known_formats() in favour of
 BzrDirFormat.register_format() and ControlDirFormat.register_format().
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib import (
28
28
    branch as _mod_branch,
29
29
    bzrdir,
30
 
    bzrdir_weave,
31
30
    config,
32
31
    errors,
33
32
    symbol_versioning,
36
35
    urlutils,
37
36
    )
38
37
 
39
 
from bzrlib.branch_weave import (
40
 
    BzrBranchFormat4,
41
 
    )
42
 
 
43
38
 
44
39
class TestDefaultFormat(tests.TestCase):
45
40
 
72
67
                         _mod_branch.format_registry.get_default())
73
68
 
74
69
 
75
 
class TestBranchFormat4(tests.TestCaseWithTransport):
76
 
    """Tests specific to branch format 4"""
77
 
 
78
 
    def test_no_metadir_support(self):
79
 
        url = self.get_url()
80
 
        bdir = bzrdir.BzrDirMetaFormat1().initialize(url)
81
 
        bdir.create_repository()
82
 
        self.assertRaises(errors.IncompatibleFormat,
83
 
            BzrBranchFormat4().initialize, bdir)
84
 
 
85
 
    def test_supports_bzrdir_6(self):
86
 
        url = self.get_url()
87
 
        bdir = bzrdir_weave.BzrDirFormat6().initialize(url)
88
 
        bdir.create_repository()
89
 
        BzrBranchFormat4().initialize(bdir)
90
 
 
91
 
 
92
70
class TestBranchFormat5(tests.TestCaseWithTransport):
93
71
    """Tests specific to branch format 5"""
94
72