~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: 2006-06-16 16:10:29 UTC
  • mfrom: (1711.2.50 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060616161029-6e8fbba7b83a5c5d
(jam) Fixes for urlutils.join() and get_parent() compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        test('http://bar', 'http://foo', 'http://bar')
210
210
        test('sftp://bzr/foo', 'http://foo', 'bar', 'sftp://bzr/foo')
211
211
        test('file:///bar', 'foo', 'file:///bar')
 
212
 
 
213
        # From a base path
 
214
        test('file:///foo', 'file:///', 'foo')
 
215
        test('file:///bar/foo', 'file:///bar/', 'foo')
 
216
        test('http://host/foo', 'http://host/', 'foo')
 
217
        test('http://host/', 'http://host', '')
212
218
        
213
219
        # Invalid joinings
214
220
        # Cannot go above root