82
82
# we need 5 yes's - wt, branch, repo, bound branch, bound repo.
83
83
self.run_bzr('break-lock checkout', stdin="y\ny\ny\ny\n")
84
84
# a new tree instance should be lockable
88
88
# and a new instance of the master branch
92
92
self.assertRaises(errors.LockBroken, self.wt.unlock)
93
93
self.assertRaises(errors.LockBroken, self.master_branch.unlock)
98
98
def test_break_lock_format_5_bzrdir(self):
99
99
# break lock on a format 5 bzrdir should just return
101
101
out, err = self.run_bzr('break-lock foo')
102
102
self.assertEqual('', out)
103
103
self.assertEqual('', err)