~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testworkingtree.py

  • Committer: Robert Collins
  • Date: 2005-10-16 22:09:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1458.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016220909-3e008de51bb9ef9c
make Branch.relpath delegate to the working tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        self.assertEqual(branch.base, tree.branch.base)
73
73
        self.assertEqual(branch.inventory, tree._inventory)
74
74
        self.assertEqual(branch.base, tree.basedir)
 
75
 
 
76
    def test_basic_relpath(self):
 
77
        # for comprehensive relpath tests, see whitebox.py.
 
78
        branch = Branch.initialize('.')
 
79
        tree = WorkingTree(branch.base)
 
80
        self.assertEqual('child',
 
81
                         tree.relpath(os.path.join(os.getcwd(), 'child')))