~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

urlutils.rebase_url handles '..' path segments in 'url'

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
                         'http://baz/qux', 'http://baz/'))
656
656
        self.assertEqual('.', urlutils.rebase_url('foo',
657
657
                         'http://bar/', 'http://bar/foo/'))
 
658
        self.assertEqual('qux/bar', urlutils.rebase_url('../bar',
 
659
                         'http://baz/qux/foo', 'http://baz/'))
658
660
 
659
661
    def test_determine_relative_path(self):
660
662
        self.assertEqual('../../baz/bar',