~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testhashcache.py

  • Committer: Martin Pool
  • Date: 2005-09-12 01:29:49 UTC
  • mto: (1092.2.12) (974.1.76) (1185.8.2)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050912012949-73a539d3f2542173
- patch from mpe to automatically add parent directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from bzrlib.selftest import InTempDir
 
17
from bzrlib.selftest import TestCaseInTempDir
18
18
 
19
19
 
20
20
 
31
31
        time.sleep(0.2)
32
32
    
33
33
 
34
 
class TestHashCache(InTempDir):
 
34
class TestHashCache(TestCaseInTempDir):
35
35
 
36
36
    def test_hashcache(self):
37
37
        """Functional tests for hashcache"""
38
38
        from bzrlib.hashcache import HashCache
39
39
        import os
40
 
        import time
41
40
 
42
41
        # make a dummy bzr directory just to hold the cache
43
42
        os.mkdir('.bzr')