82
88
InventoryDirectory('123', 'src', parent_id='TREE_ROOT', revision=None)
83
89
>>> i.add(InventoryFile('2323', 'hello.c', parent_id='123'))
84
90
InventoryFile('2323', 'hello.c', parent_id='123', sha1=None, len=None)
85
>>> shouldbe = {0: '', 1: 'src', 2: pathjoin('src','hello.c')}
86
92
>>> for ix, j in enumerate(i.iter_entries()):
87
93
... print (j[0] == shouldbe[ix], j[1])