~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: 2006-04-19 08:31:08 UTC
  • mfrom: (1666.1.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060419083108-fab2970f4575b010
Change the default branch format to be metadir. (Robert Collins, Aaron Bentley).

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