473
481
reference_inv = CHKInventory.from_inventory(chk_bytes, inv)
474
482
delta = [(None, "A", "A-id", a_entry)]
475
483
new_inv = base_inv.create_by_apply_delta(delta, "expectedid")
476
488
# new_inv should be the same as reference_inv.
477
489
self.assertEqual(reference_inv.revision_id, new_inv.revision_id)
478
490
self.assertEqual(reference_inv.root_id, new_inv.root_id)