comparison tests/test-url.py @ 13808:58b86b9149f1

url: fix tests
author Matt Mackall <mpm@selenic.com>
date Wed, 30 Mar 2011 14:42:41 -0500
parents 4e8f2310f310
children 7f18bab2c0b0
comparison
equal deleted inserted replaced
13807:974490c1768f 13808:58b86b9149f1
107 Just a scheme and a path: 107 Just a scheme and a path:
108 108
109 >>> url('mailto:John.Doe@example.com') 109 >>> url('mailto:John.Doe@example.com')
110 <url scheme: 'mailto', path: 'John.Doe@example.com'> 110 <url scheme: 'mailto', path: 'John.Doe@example.com'>
111 >>> url('a:b:c:d') 111 >>> url('a:b:c:d')
112 <url scheme: 'a', path: 'b:c:d'> 112 <url path: 'a:b:c:d'>
113 >>> url('aa:bb:cc:dd')
114 <url scheme: 'aa', path: 'bb:cc:dd'>
113 115
114 SSH examples: 116 SSH examples:
115 117
116 >>> url('ssh://joe@host//home/joe') 118 >>> url('ssh://joe@host//home/joe')
117 <url scheme: 'ssh', user: 'joe', host: 'host', path: '/home/joe'> 119 <url scheme: 'ssh', user: 'joe', host: 'host', path: '/home/joe'>