68
68
self.assertEqual('subtree-root-id', sub_tree.path2id(''))
69
69
self.assertEqual('', sub_tree.id2path('subtree-root-id'))
70
70
self.assertIs(None, base_tree.path2id('subtree/file1'))
71
73
self.assertTrue('file1-id' not in base_tree)
72
74
self.assertEqual('subtree-root-id', base_tree.path2id('subtree'))
73
75
self.assertEqual('subtree', base_tree.id2path('subtree-root-id'))