94
92
>>> for ix, j in enumerate(i.iter_entries()):
95
93
... print (j[0] == shouldbe[ix], j[1])
97
(True, InventoryDirectory('TREE_ROOT', u'', parent_id=None, revision=None))
95
(True, InventoryDirectory('TREE_ROOT', '', parent_id=None, revision=None))
98
96
(True, InventoryDirectory('123', 'src', parent_id='TREE_ROOT', revision=None))
99
97
(True, InventoryFile('2323', 'hello.c', parent_id='123', sha1=None, len=None))
100
102
>>> i.add(InventoryFile('2324', 'bye.c', '123'))
101
103
InventoryFile('2324', 'bye.c', parent_id='123', sha1=None, len=None)
102
104
>>> i.add(InventoryDirectory('2325', 'wibble', '123'))