/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

Turn branch format.open into a factory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
 
26
26
import bzrlib.branch as branch
 
27
from bzrlib.errors import NotBranchError
27
28
from bzrlib.tests import TestCase, TestCaseInTempDir
28
29
from bzrlib.transport import get_transport
29
30
 
59
60
            self.failUnless(isinstance(found_format, format.__class__))
60
61
        check_format(branch.BzrBranchFormat5(), "foo")
61
62
        check_format(branch.BzrBranchFormat6(), "bar")
62
 
 
63
 
    def test_initialize_returns_branch(self):
64
 
        self.failUnless(isinstance(branch.BzrBranchFormat5().initialize("."), branch.Branch))
 
63
        
 
64
    def test_find_format_not_branch(self):
 
65
        self.assertRaises(NotBranchError,
 
66
                          branch.BzrBranchFormat.find_format,
 
67
                          get_transport('.'))