~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

(mbp) merge bzr.dev to 0.8, prepare for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
    """Test some stuff when accessing a bzr Branch over sftp"""
194
194
 
195
195
    def test_lock_file(self):
196
 
        """Make sure that a Branch accessed over sftp tries to lock itself."""
197
 
        b = bzrdir.BzrDir.create_branch_and_repo(self.get_url())
 
196
        # old format branches use a special lock file on sftp.
 
197
        b = self.make_branch('', format=bzrdir.BzrDirFormat6())
 
198
        b = bzrlib.branch.Branch.open(self.get_url())
198
199
        self.failUnlessExists('.bzr/')
199
200
        self.failUnlessExists('.bzr/branch-format')
200
201
        self.failUnlessExists('.bzr/branch-lock')