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