/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_btree_index.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-19 15:45:10 UTC
  • mto: This revision was merged to the branch mainline in revision 4758.
  • Revision ID: john@arbash-meinel.com-20091019154510-tr02ifha84pmo3zh
Add .clear_cache() members to GraphIndexBuilder and BTreeBuilder.

Update GroupCompressVersionedFiles.clear_cache() to clear the graph index's caches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
 
125
125
class TestBTreeBuilder(BTreeTestCase):
126
126
 
 
127
    def test_clear_cache(self):
 
128
        builder = btree_index.BTreeBuilder(reference_lists=0, key_elements=1)
 
129
        # This is a no-op, but we need the api to be consistent with other
 
130
        # BTreeGraphIndex apis.
 
131
        builder.clear_cache()
 
132
 
127
133
    def test_empty_1_0(self):
128
134
        builder = btree_index.BTreeBuilder(key_elements=1, reference_lists=0)
129
135
        # NamedTemporaryFile dies on builder.finish().read(). weird.