~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_treeshape.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-24 23:20:14 UTC
  • mfrom: (5365.5.29 2.3-btree-chk-leaf)
  • Revision ID: pqm@pqm.ubuntu.com-20100824232014-nu9owzel2zym2jk2
(jam) Use a custom C type for CHK index entries, saves memory

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
from bzrlib import tests
22
 
from bzrlib.tests import (
23
 
    features,
24
 
    )
25
22
 
26
23
 
27
24
class TestTreeShape(tests.TestCaseWithTransport):
33
30
            ('.bzr/',),
34
31
            ('.bzr/README', 'hello'),
35
32
            ])
36
 
        self.assertPathExists('foo')
37
 
        self.assertPathExists('.bzr/README')
 
33
        self.failUnlessExists('foo')
 
34
        self.failUnlessExists('.bzr/README')
38
35
        self.assertFileEqual('hello', '.bzr/README')
39
36
 
40
37
    def test_build_tree_symlink(self):
41
 
        self.requireFeature(features.SymlinkFeature)
 
38
        self.requireFeature(tests.SymlinkFeature)
42
39
        self.build_tree_contents([('link@', 'target')])
43
40
        self.assertEqual('target',
44
41
            os.readlink('link'))