~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_inventory/basics.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-20 08:56:45 UTC
  • mfrom: (4526.9.23 apply-inventory-delta)
  • Revision ID: pqm@pqm.ubuntu.com-20090720085645-54mtgybxua0yx6hw
(robertc) Add checks for inventory deltas which try to ensure that
        deltas that are not an exact fit are not applied. (Robert
        Collins, bug 397705, bug 367633)

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
            ])
149
149
        self.assertEqual('a', inv.id2path('a-id'))
150
150
        a_ie = inv['a-id']
151
 
        inv.apply_delta([("a", None, "a-id", a_ie)])
 
151
        inv.apply_delta([("a", None, "a-id", None)])
152
152
        self.assertRaises(errors.NoSuchId, inv.id2path, 'a-id')
153
153
 
154
154
    def test_apply_delta_rename(self):