290
291
def test_iteration(self):
291
292
"""Ensure that iteration through ids works properly"""
292
293
btree = self.make_tree_1()[0]
293
self.assertEqual(self.sorted_ids(btree), ['a', 'b', 'c', 'd'])
295
[inventory.ROOT_ID, 'a', 'b', 'c', 'd'])
294
296
btree.note_deletion("grandparent/parent/file")
295
297
btree.note_id("e", "grandparent/alt_parent/fool", kind="directory")
296
298
btree.note_last_changed("grandparent/alt_parent/fool",
298
self.assertEqual(self.sorted_ids(btree), ['a', 'b', 'd', 'e'])
301
[inventory.ROOT_ID, 'a', 'b', 'd', 'e'])
301
304
class BundleTester(TestCaseWithTransport):