File: test_urlparse

package info (click to toggle)
python2.1 2.1.3dfsg-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 38,028 kB
  • ctags: 64,228
  • sloc: python: 186,023; ansic: 184,754; xml: 43,435; sh: 12,381; makefile: 3,523; perl: 3,108; lisp: 2,460; cpp: 106; sed: 2
file content (41 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
test_urlparse
urlparse.urljoin() tests

g:h           = 'g:h'
g             = 'http://a/b/c/g'
./g           = 'http://a/b/c/g'
g/            = 'http://a/b/c/g/'
/g            = 'http://a/g'
//g           = 'http://g'
?y            = 'http://a/b/c/d;p?y'
g?y           = 'http://a/b/c/g?y'
g?y/./x       = 'http://a/b/c/g?y/./x'
#s            = 'http://a/b/c/d;p?q#s'
g#s           = 'http://a/b/c/g#s'
g#s/./x       = 'http://a/b/c/g#s/./x'
g?y#s         = 'http://a/b/c/g?y#s'
;x            = 'http://a/b/c/d;x'
g;x           = 'http://a/b/c/g;x'
g;x?y#s       = 'http://a/b/c/g;x?y#s'
.             = 'http://a/b/c/'
./            = 'http://a/b/c/'
..            = 'http://a/b/'
../           = 'http://a/b/'
../g          = 'http://a/b/g'
../..         = 'http://a/'
../../        = 'http://a/'
../../g       = 'http://a/g'
              = 'http://a/b/c/d;p?q#f'
../../../g    = 'http://a/../g'
../../../../g = 'http://a/../../g'
/./g          = 'http://a/./g'
/../g         = 'http://a/../g'
g.            = 'http://a/b/c/g.'
.g            = 'http://a/b/c/.g'
g..           = 'http://a/b/c/g..'
..g           = 'http://a/b/c/..g'
./../g        = 'http://a/b/g'
./g/.         = 'http://a/b/c/g/'
g/./h         = 'http://a/b/c/g/h'
g/../h        = 'http://a/b/c/h'
0 errors