~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-11 21:09:14 UTC
  • mfrom: (5712.4.12 bzrdir-weave)
  • Revision ID: pqm@pqm.ubuntu.com-20110311210914-acqxl3g7wkn5cklo
(jelmer) Move weave-era BzrDir formats into a separate module. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
class SFTPBranchTest(TestCaseWithSFTPServer):
190
190
    """Test some stuff when accessing a bzr Branch over sftp"""
191
191
 
192
 
    def test_lock_file(self):
193
 
        # old format branches use a special lock file on sftp.
194
 
        b = self.make_branch('', format=bzrdir.BzrDirFormat6())
195
 
        b = bzrlib.branch.Branch.open(self.get_url())
196
 
        self.failUnlessExists('.bzr/')
197
 
        self.failUnlessExists('.bzr/branch-format')
198
 
        self.failUnlessExists('.bzr/branch-lock')
199
 
 
200
 
        self.failIf(lexists('.bzr/branch-lock.write-lock'))
201
 
        b.lock_write()
202
 
        self.failUnlessExists('.bzr/branch-lock.write-lock')
203
 
        b.unlock()
204
 
        self.failIf(lexists('.bzr/branch-lock.write-lock'))
205
 
 
206
192
    def test_push_support(self):
207
193
        self.build_tree(['a/', 'a/foo'])
208
194
        t = bzrdir.BzrDir.create_standalone_workingtree('a')