~ubuntu-branches/debian/experimental/bzr/experimental

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_mv.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij, James Westby, Jelmer Vernooij
  • Date: 2009-09-08 14:14:23 UTC
  • mfrom: (1.1.59 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908141423-ilpel5hy4vxhzxrl
Tags: 1.18-1
[ James Westby ]
* New upstream release.

[ Jelmer Vernooij ]
* Bump standards version to 3.8.3.
* Remove unused patch system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
 
21
import bzrlib.branch
21
22
from bzrlib import (
22
23
    osutils,
23
24
    workingtree,
485
486
                                retcode=3)
486
487
        self.assertEqual('bzr: ERROR: --after cannot be specified with'
487
488
                         ' --auto.\n', err)
 
489
 
 
490
    def test_mv_readonly_lightweight_checkout(self):
 
491
        branch = self.make_branch('foo')
 
492
        branch = bzrlib.branch.Branch.open('readonly+' + branch.base)
 
493
        tree = branch.create_checkout('tree', lightweight=True)
 
494
        self.build_tree(['tree/path'])
 
495
        tree.add('path')
 
496
        # If this fails, the tree is trying to acquire a branch lock, which it
 
497
        # shouldn't.
 
498
        self.run_bzr(['mv', 'tree/path', 'tree/path2'])