~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-22 09:57:11 UTC
  • mfrom: (5724.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20110322095711-9bggm9tnxnw9frow
(jameinel) Fix tar exporters to always write to binary streams. (John A
 Meinel)

Show diffs side-by-side

added added

removed removed

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