/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_lru_cache.py

  • Committer: Andrew Bennetts
  • Date: 2009-04-27 23:14:00 UTC
  • mfrom: (4306 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4307.
  • Revision ID: andrew.bennetts@canonical.com-20090427231400-htifkzm2zvwp3lax
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
 
139
139
        # We hit the max
140
140
        self.assertEqual(10, len(cache))
 
141
        self.assertEqual([11, 10, 9, 1, 8, 7, 6, 5, 4, 3],
 
142
                         [n.key for n in cache._walk_lru()])
141
143
 
142
144
    def test_cleanup_shrinks_to_after_clean_count(self):
143
145
        cache = lru_cache.LRUCache(max_cache=5, after_cleanup_count=3)