~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-23 16:01:17 UTC
  • mto: This revision was merged to the branch mainline in revision 4563.
  • Revision ID: john@arbash-meinel.com-20090723160117-k7wgyommqlgz6jzb
Fix a trivial bug that should have been caught earlier. :)

I forgot to reverse the subdir list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
632
632
        subdir = cwd + '/subdir'
633
633
        self.assertEqual('subdir', osutils.relpath(cwd, subdir))
634
634
 
 
635
    def test_deep_relpath(self):
 
636
        cwd = osutils.getcwd()
 
637
        subdir = cwd + '/sub/subsubdir'
 
638
        self.assertEqual('sub/subsubdir', osutils.relpath(cwd, subdir))
 
639
 
635
640
    def test_not_relative(self):
636
641
        self.assertRaises(errors.PathNotChild,
637
642
                          osutils.relpath, 'C:/path', 'H:/path')