53
54
branch = Branch.initialize(u'.')
55
56
print >> open('file', 'w'), "content"
57
59
tree = branch.working_tree()
58
60
files = list(tree.list_files())
59
61
self.assertEqual(files[0], ('dir', '?', 'directory', None, TreeDirectory()))
60
62
self.assertEqual(files[1], ('file', '?', 'file', None, TreeFile()))
61
self.assertEqual(files[2], ('symlink', '?', 'symlink', None, TreeLink()))
64
self.assertEqual(files[2], ('symlink', '?', 'symlink', None, TreeLink()))
63
66
def test_open_containing(self):
64
67
branch = Branch.initialize(u'.')