64
64
# this test checks the subdir is removed, so it needs to know the
65
65
# control directory; that changes rarely so just hardcode (and check)
68
68
base_tree.subsume(sub_tree)
69
69
self.assertEqual(['tree-1', 'subtree-1'], base_tree.get_parent_ids())
70
70
self.assertEqual(sub_root_id, base_tree.path2id('subtree'))
71
71
self.assertEqual('file2-id', base_tree.path2id('subtree/file2'))
72
72
# subsuming the tree removes the control directory, so you can't open
75
75
file2 = open('tree/subtree/file2', 'rb')
77
77
file2_contents = file2.read()