~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testhashcache.py

  • Committer: Martin Pool
  • Date: 2005-07-08 02:40:22 UTC
  • Revision ID: mbp@sourcefrog.net-20050708024021-731a320c625619f6
- code to re-read hashcache from file

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        del hc
97
97
 
98
98
        hc = HashCache('.')
99
 
        # hc.read('stat-cache')
 
99
        hc.read('stat-cache')
 
100
 
 
101
        self.assertEquals(len(hc._cache), 1)
 
102
        self.assertEquals(hc.get_sha1('foo'), sha1('g00dbye'))
 
103
        self.assertEquals(hc.hit_count, 1)
 
104
        self.assertEquals(hc.miss_count, 0)
100
105
        
101
106
 
102
107