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

  • Committer: John Arbash Meinel
  • Date: 2006-07-24 20:05:07 UTC
  • mto: This revision was merged to the branch mainline in revision 1885.
  • Revision ID: john@arbash-meinel.com-20060724200507-6a9b467053048ace
Removing disk-backed-cache

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
            return lst[0]
491
491
 
492
492
        val = read_one_raw('text-1')
493
 
        self.failUnless('text-1' in k._data._cache)
494
 
        self.assertEqual(val[1], k._data._cache['text-1'])
 
493
        self.assertEqual({'text-1':val[1]}, k._data._cache)
495
494
 
496
495
        k.clear_cache()
497
496
        # After clear, new reads are not cached
530
529
        self.assertEqual({}, k._data._cache)
531
530
 
532
531
    def test_cache_read(self):
533
 
        # Test at the KnitVersionedFile level, rather than _KnitData
534
532
        k = self.create_knit()
535
533
        k.enable_cache()
536
534