~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_bound_sftp.py

  • Committer: Martin Pool
  • Date: 2007-04-04 01:22:11 UTC
  • mfrom: (2393.1.1 bzr.docs)
  • mto: This revision was merged to the branch mainline in revision 2397.
  • Revision ID: mbp@sourcefrog.net-20070404012211-sq269me6bai9m6xk
merge trunk and doc fix from elliot

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                           BzrDirMetaFormat1,
31
31
                           )
32
32
import bzrlib.errors as errors
 
33
from bzrlib.tests import TestSkipped
33
34
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer, paramiko_loaded
34
35
 
35
36
 
38
39
    def create_branches(self):
39
40
        self.build_tree(['base/', 'base/a', 'base/b'])
40
41
        format = bzrdir.format_registry.make_bzrdir('knit')
41
 
        wt_base = BzrDir.create_standalone_workingtree('base',
42
 
            format=format)
 
42
        try:
 
43
            wt_base = BzrDir.create_standalone_workingtree(
 
44
                self.get_url('base'), format=format)
 
45
        except errors.NotLocalUrl:
 
46
            raise TestSkipped('Not a local URL')
43
47
    
44
48
        b_base = wt_base.branch
45
49
 
62
66
 
63
67
    def test_simple_binding(self):
64
68
        self.build_tree(['base/', 'base/a', 'base/b', 'child/'])
65
 
        wt_base = BzrDir.create_standalone_workingtree('base')
 
69
        try:
 
70
            wt_base = BzrDir.create_standalone_workingtree(self.get_url('base'))
 
71
        except errors.NotLocalUrl:
 
72
            raise TestSkipped('Not a local URL')
66
73
 
67
74
        wt_base.add('a')
68
75
        wt_base.add('b')