~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testhashcache.py

Hacking notes on TDD

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import os
18
18
import sys
19
19
import time
20
 
from bzrlib.tests import TestCaseInTempDir
 
20
from bzrlib.selftest import TestCaseInTempDir
21
21
 
22
22
 
23
23
 
47
47
 
48
48
        # make a dummy bzr directory just to hold the cache
49
49
        os.mkdir('.bzr')
50
 
        hc = HashCache(u'.')
 
50
        hc = HashCache('.')
51
51
 
52
52
        file('foo', 'wb').write('hello')
53
53
        os.mkdir('subdir')
110
110
        hc.write()
111
111
        del hc
112
112
 
113
 
        hc = HashCache(u'.')
 
113
        hc = HashCache('.')
114
114
        hc.read()
115
115
 
116
116
        ##self.assertEquals(len(hc._cache), 2)