55
55
tree.set_root_id('new-root')
56
56
# to detect that the inventory is written by flush, we
57
57
# first check that it was not written yet.
59
59
self.assertEqual(old_root, reference_tree.get_root_id())
60
60
# now flush the tree which should write the inventory.
62
62
# and check it was written using another reference tree
64
64
self.assertEqual('new-root', reference_tree.get_root_id())