75
75
self.addCleanup(sub_tree.unlock)
76
76
self.assertEqual('file1-id', sub_tree.path2id('file1'))
78
78
self.assertEqual('subtree-root-id', sub_tree.path2id(''))
79
79
self.assertEqual('', sub_tree.id2path('subtree-root-id'))
80
80
self.assertIs(None, base_tree.path2id('subtree/file1'))
82
82
self.addCleanup(base_tree.unlock)
84
84
self.assertEqual('subtree-root-id', base_tree.path2id('subtree'))
85
85
self.assertEqual('subtree', base_tree.id2path('subtree-root-id'))