71
71
def test_break_lock_everything_locked(self):
72
72
### if everything is locked, we should be able to unlock the lot.
76
80
self.master_branch.lock_write()
78
82
# we need 5 yes's - wt, branch, repo, bound branch, bound repo.
80
84
# a new tree instance should be lockable
84
88
# and a new instance of the master branch
88
92
self.assertRaises(errors.LockBroken, self.wt.unlock)