~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-18 22:14:03 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110218221403-t4qbhq9uv2iqk4bh
Move more weave-specific tests to bzrlib.plugins.weave_fmt.

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
 
        from bzrlib.plugins.weave_fmt.bzrdir import BzrDirFormat6
195
 
        b = self.make_branch('', format=BzrDirFormat6())
196
 
        b = bzrlib.branch.Branch.open(self.get_url())
197
 
        self.failUnlessExists('.bzr/')
198
 
        self.failUnlessExists('.bzr/branch-format')
199
 
        self.failUnlessExists('.bzr/branch-lock')
200
 
 
201
 
        self.failIf(lexists('.bzr/branch-lock.write-lock'))
202
 
        b.lock_write()
203
 
        self.failUnlessExists('.bzr/branch-lock.write-lock')
204
 
        b.unlock()
205
 
        self.failIf(lexists('.bzr/branch-lock.write-lock'))
206
 
 
207
192
    def test_push_support(self):
208
193
        self.build_tree(['a/', 'a/foo'])
209
194
        t = bzrdir.BzrDir.create_standalone_workingtree('a')