128
140
tree.set_root_id('new-root')
129
141
# to detect that the inventory is written by unlock, we
130
142
# first check that it was not written yet.
131
145
reference_tree = tree.bzrdir.open_workingtree()
132
146
self.assertEqual(old_root, reference_tree.get_root_id())
133
147
# now unlock the second held lock, which should do nothing.