~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_urlutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-22 20:26:46 UTC
  • mfrom: (3567.2.1 rebase-..-paths)
  • Revision ID: pqm@pqm.ubuntu.com-20080722202646-5kwh910svyyumzre
(Michael Hudson) urutils.rebase_url handles '..' path segments in the
        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',