79
79
('src/hello.c', 'hello-id'),
80
80
], [(path, ie.file_id) for path, ie in inv.iter_entries()])
82
def test_iter_entries_by_dir(self):
85
for args in [('src', 'directory', 'src-id'),
86
('doc', 'directory', 'doc-id'),
87
('src/hello.c', 'file', 'hello-id'),
88
('src/bye.c', 'file', 'bye-id'),
89
('zz', 'file', 'zz-id'),
90
('src/sub/', 'directory', 'sub-id'),
91
('src/zz.c', 'file', 'zzc-id'),
92
('src/sub/a', 'file', 'a-id'),
93
('Makefile', 'file', 'makefile-id')]:
97
('Makefile', 'makefile-id'),
101
('src/bye.c', 'bye-id'),
102
('src/hello.c', 'hello-id'),
103
('src/sub', 'sub-id'),
104
('src/zz.c', 'zzc-id'),
105
('src/sub/a', 'a-id'),
106
], [(path, ie.file_id) for path, ie in inv.iter_entries_by_dir()])
82
108
def test_version(self):
83
109
"""Inventory remembers the text's version."""