~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-07-17 13:27:14 UTC
  • mfrom: (2624 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070717132714-tmzx9khmg9501k51
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        self.wt = checkoutdir.create_workingtree()
65
65
 
66
66
    def test_break_lock_help(self):
67
 
        out, err = self.run_bzr('break-lock', '--help')
 
67
        out, err = self.run_bzr('break-lock --help')
68
68
        # shouldn't fail and should not produce error output
69
69
        self.assertEqual('', err)
70
70
 
80
80
        self.master_branch.lock_write()
81
81
        # run the break-lock
82
82
        # we need 5 yes's - wt, branch, repo, bound branch, bound repo.
83
 
        self.run_bzr('break-lock', 'checkout', stdin="y\ny\ny\ny\n")
 
83
        self.run_bzr('break-lock checkout', stdin="y\ny\ny\ny\n")
84
84
        # a new tree instance should be lockable
85
85
        branch = bzrlib.branch.Branch.open('checkout')
86
86
        branch.lock_write()
98
98
    def test_break_lock_format_5_bzrdir(self):
99
99
        # break lock on a format 5 bzrdir should just return
100
100
        self.make_branch_and_tree('foo', format=bzrlib.bzrdir.BzrDirFormat5())
101
 
        out, err = self.run_bzr('break-lock', 'foo')
 
101
        out, err = self.run_bzr('break-lock foo')
102
102
        self.assertEqual('', out)
103
103
        self.assertEqual('', err)