~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: abentley
  • Date: 2006-04-20 23:47:53 UTC
  • mfrom: (1681 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1683.
  • Revision ID: abentley@lappy-20060420234753-6a6874b76f09f86d
Merge bzr.dev

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')