~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testidentitymap.py

  • Committer: Robert Collins
  • Date: 2005-10-11 01:05:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051011010524-e258bc8d051cc9d2
add a cache bound to Transactions, and a precious facility, so that we keep inventory.weave in memory, but can discard weaves for other such files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        self.assertRaises(errors.BzrError, map.add_weave, "id", weave)
47
47
        self.assertEqual(weave, map.find_weave("id"))
48
48
 
 
49
    def test_remove_object(self):
 
50
        map = identitymap.IdentityMap()
 
51
        weave = "foo"
 
52
        map.add_weave("id", weave)
 
53
        map.remove_object(weave)
 
54
        map.add_weave("id", weave)
 
55
 
49
56
 
50
57
class TestNullIdentityMap(TestCase):
51
58