86
86
branch = self.make_branch('branch')
87
87
tree = MemoryTree.create_on_branch(branch)
89
tree.add(['afile', 'adir'], None, ['file', 'directory'])
89
tree.add(['', 'afile', 'adir'], None,
90
91
self.assertEqual('afile', tree.id2path(tree.path2id('afile')))
91
92
self.assertEqual('adir', tree.id2path(tree.path2id('adir')))
92
93
self.assertFalse(tree.has_filename('afile'))