~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_treeshape.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-09 22:14:24 UTC
  • mfrom: (5777.4.2 mutableinventorytree)
  • mto: This revision was merged to the branch mainline in revision 5787.
  • Revision ID: jelmer@samba.org-20110409221424-a2air35exbz50hi8
Mergemutableinventorytree.

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'))