~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_foreign_vcs/test_branch.py

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
from bzrlib.errors import (
 
22
    IncompatibleFormat,
22
23
    UnstackableBranchFormat,
23
24
    )
24
25
from bzrlib.revision import (
25
26
    NULL_REVISION,
26
27
    )
27
28
from bzrlib.tests import (
28
 
    TestCase,
29
29
    TestCaseWithTransport,
30
30
    )
31
31
 
129
129
        self.assertEquals((0, NULL_REVISION), branch.last_revision_info())
130
130
 
131
131
 
132
 
class ForeignBranchFormatTests(TestCase):
 
132
class ForeignBranchFormatTests(TestCaseWithTransport):
133
133
    """Basic tests for foreign branch format objects."""
134
134
 
135
135
    branch_format = None # Set to a BranchFormat instance by adapter
140
140
        Remote branches may be initializable on their own, but none currently
141
141
        support living in .bzr/branch.
142
142
        """
143
 
        self.assertRaises(NotImplementedError, self.branch_format.initialize, None)
 
143
        bzrdir = self.make_bzrdir('dir')
 
144
        self.assertRaises(IncompatibleFormat, self.branch_format.initialize, bzrdir)
144
145
 
145
146
    def test_get_format_description_type(self):
146
147
        self.assertIsInstance(self.branch_format.get_format_description(), str)