%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_urlparse.pyc

ó
Nêáac!@sddlmZddlZddlZddlZddlZdZdZdZdZ	dgfdgfdgfd	ddfgfd
ddfgfdddfgfdddfgfdddfgfd
ddfgfdddfddfgfdddfddfgfdgfdgfdddfgfdddfddfgfdddfddfgfdgfdgfdddfgfdddfddfgfdddfddfgfgZ
difdifdifd	idgd6fd
idgd6fdidgd6fdidgd6fd
idgd6fdidgd6dgd6fdiddgd6fdifdifdifd	idgd6fd
idgd6fdidgd6fdidgd6fd
idgd6fdidgd6dgd6fdiddgd6fdifdifdidgd6fdidgd6dgd6fdiddgd6fdifdifdidgd6fdidgd6dgd6fdiddgd6fgZdejfd„ƒYZ
d„ZedkreƒndS(iÿÿÿÿ(ttest_supportNshttp://a/b/c/d;p?q#fshttp://a/b/c/d;p?qshttp://a/b/c/dtt&s&&t=s=atasa=s&a=btbsa=a+b&b=b+csa bsb csa=1&a=2t1t2t;s;;s;a=bsa=a+b;b=b+csa=1;a=2tUrlParseTestCasecBséeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs>tj|ƒ}|j||ƒ|j|j|j|j|j|jf}|j||ƒtj|ƒ}|j||ƒ|j||j	ƒƒtj|j	ƒƒ}|j|j	ƒ|j	ƒƒ|j||ƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j
|j
ƒ|j|j|jƒ|j|j|jƒ|j|j
|j
ƒtj|ƒ}|j||ƒ|j|j|j|j|jf}|j||ƒtj|ƒ}|j||ƒ|j||j	ƒƒtj|j	ƒƒ}|j|j	ƒ|j	ƒƒ|j||ƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j|jƒ|j|j
|j
ƒ|j|j|jƒ|j|j|jƒ|j|j
|j
ƒdS(N(turlparsetassertEqualtschemetnetloctpathtparamstquerytfragmentt
urlunparsetgeturltusernametpasswordthostnametportturlsplitt
urlunsplit(tselfturltparsedtsplittresulttttresult2tresult3((s./usr/local/lib/python2.7/test/test_urlparse.pytcheckRoundtripsJsRcCsœx•tD]\}}tj|dtƒ}|j||d|ƒg|D]}t|dƒrF|^qF}tj|dtƒ}|j||d|ƒqWdS(Ntkeep_blank_valuessError parsing %ri(tparse_qsl_test_casesR
t	parse_qsltTrueRtlentFalse(RtorigtexpectRtvtexpect_without_blanks((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_qsl}s)cCs°x©tD]¡\}}tj|dtƒ}|j||d|ƒtg|D]*}t||dƒrI|||f^qIƒ}tj|dtƒ}|j||d|ƒqWdS(NR#sError parsing %ri(tparse_qs_test_casesR
tparse_qsR&RtdictR'R((RR)R*RR+R,((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_qs†s:cCsdddfdddfd	ddfd
dd fdd!d"fdd#d$fg}x*|D]"\}}}|j|||ƒqUWdS(%Nsfile:///tmp/junk.txttfileRs
/tmp/junk.txtsimap://mail.python.org/mbox1timapsmail.python.orgs/mbox1s1mms://wms.sys.hinet.net/cts/Drama/09006251100.asftmmsswms.sys.hinet.nets/cts/Drama/09006251100.asfsnfs://server/path/to/file.txttnfstservers/path/to/file.txts0svn+ssh://svn.zope.org/repos/main/ZConfig/trunk/ssvn+sshssvn.zope.orgs/repos/main/ZConfig/trunk/s)git+ssh://git@github.com/user/project.gitsgit+sshsgit@github.coms/user/project.git(R2Rs
/tmp/junk.txtRRR(R2Rs
/tmp/junk.txtRR(R3smail.python.orgs/mbox1RRR(R3smail.python.orgs/mbox1RR(R4swms.sys.hinet.nets/cts/Drama/09006251100.asfRRR(R4swms.sys.hinet.nets/cts/Drama/09006251100.asfRR(R5R6s/path/to/file.txtRRR(R5R6s/path/to/file.txtRR(ssvn+sshssvn.zope.orgs/repos/main/ZConfig/trunk/RRR(ssvn+sshssvn.zope.orgs/repos/main/ZConfig/trunk/RR(sgit+sshsgit@github.coms/user/project.gitRRR(sgit+sshsgit@github.coms/user/project.gitRR(R"(Rt	testcasesRRR((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_roundtripss4c
Cs¨dddfdddfdddfdddfd
ddfg}x_dD]W}xN|D]F\}}}||}|f|}|f|}|j|||ƒqVWqIWdS(Ns://www.python.orgswww.python.orgRs://www.python.org#abctabcs://www.python.org?q=abcsq=abcs://www.python.org/#abct/s://a/b/c/d;p?q#fRs/b/c/dtptqtfs/b/c/d;pthttpthttps(swww.python.orgRRRR(swww.python.orgRRR(swww.python.orgRRRR9(swww.python.orgRRR9(swww.python.orgRRsq=abcR(swww.python.orgRsq=abcR(swww.python.orgR:RRR9(swww.python.orgR:RR9(Rs/b/c/dR;R<R=(Rs/b/c/d;pR<R=(R>R?(R"(RR7RRRR((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_http_roundtrips®s*



cCs,|jtj||ƒ||||fƒdS(N(RR
turljoin(Rtbasetrelurltexpected((s./usr/local/lib/python2.7/test/test_urlparse.pyt	checkJoinÊscCsnxgdddddddgD]J}|jtjtj|ƒƒ|ƒ|jtjtj|ƒƒ|ƒqWdS(NtPythons./Pythonsx-newscheme://foo.com/stuffsx://ysx:/ysx:/R:(RR
RRR(Rtu((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_unparse_parseÎs""cCs|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtd	d
ƒ|jtddƒ|jtd
dƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtd dƒ|jtd!d"ƒ|jtd#d$ƒ|jtd%d$ƒ|jtd&dƒ|jtd'd(ƒ|jtd)d*ƒ|jtd+d,ƒ|jtd-d.ƒ|jtd/d*ƒ|jtd0d1ƒ|jtd2d3ƒ|jtd4d5ƒ|jtd6d7ƒ|jtd8d"ƒ|jtd9dƒ|jtd:d;ƒ|jtd<d=ƒdS(>Nsg:htgshttp://a/b/c/gs./gsg/shttp://a/b/c/g/s/gs
http://a/gs//gshttp://gsg?yshttp://a/b/c/g?ysg?y/./xshttp://a/b/c/g?y/./xs#sshttp://a/b/c/d;p?q#ssg#sshttp://a/b/c/g#ssg#s/./xshttp://a/b/c/g#s/./xsg?y#sshttp://a/b/c/g?y#ssg;xshttp://a/b/c/g;xsg;x?y#sshttp://a/b/c/g;x?y#st.s
http://a/b/c/s./s..shttp://a/b/s../s../gshttp://a/b/gs../..s	http://a/s../../s../../gRshttp://a/b/c/d;p?q#fs
../../../gs
http://a/../gs
../../../../gshttp://a/../../gs/./gshttp://a/./gs/../gsg.shttp://a/b/c/g.s.gshttp://a/b/c/.gsg..shttp://a/b/c/g..s..gshttp://a/b/c/..gs./../gs./g/.sg/./hshttp://a/b/c/g/hsg/../hshttp://a/b/c/h(REtRFC1808_BASE(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_RFC1808ÓsFcCs|jtjdƒdƒdS(Nsmailto:1337@example.orgtmailtoRs1337@example.org(RMRs1337@example.orgRRR(RR
(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_RFC2368scCsé|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtd	d
ƒ|jtddƒ|jtd
dƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtdd ƒ|jtd!d ƒ|jtd"dƒ|jtd#tƒ|jtd$d%ƒ|jtd&d'ƒ|jtd(d)ƒ|jtd*d%ƒ|jtd+d,ƒ|jtd-d.ƒ|jtd/d0ƒ|jtd1d2ƒ|jtd3dƒ|jtd4dƒ|jtd5d6ƒ|jtd7d8ƒ|jtd9d:ƒ|jtd;d<ƒ|jtd=d>ƒ|jtd?d@ƒ|jtdAdBƒ|jtdCdDƒdS(ENsg:hRIshttp://a/b/c/gs./gsg/shttp://a/b/c/g/s/gs
http://a/gs//gshttp://gsg?yshttp://a/b/c/g?ys#sshttp://a/b/c/d;p?q#ssg#sshttp://a/b/c/g#ssg?y#sshttp://a/b/c/g?y#ssg;xshttp://a/b/c/g;xsg;x?y#sshttp://a/b/c/g;x?y#sRJs
http://a/b/c/s./s..shttp://a/b/s../s../gshttp://a/b/gs../..s	http://a/s../../s../../gRs
../../../gs
http://a/../gs
../../../../gshttp://a/../../gs/./gshttp://a/./gs/../gsg.shttp://a/b/c/g.s.gshttp://a/b/c/.gsg..shttp://a/b/c/g..s..gshttp://a/b/c/..gs./../gs./g/.sg/./hshttp://a/b/c/g/hsg/../hshttp://a/b/c/hs	g;x=1/./yshttp://a/b/c/g;x=1/ys
g;x=1/../yshttp://a/b/c/ysg?y/./xshttp://a/b/c/g?y/./xsg?y/../xshttp://a/b/c/g?y/../xsg#s/./xshttp://a/b/c/g#s/./xsg#s/../xshttp://a/b/c/g#s/../x(REtRFC2396_BASE(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_RFC2396sNcCs|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtd	d
ƒ|jtddƒ|jtd
dƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtd d!ƒ|jtd"d!ƒ|jtd#d$ƒ|jtd%d&ƒ|jtd'd&ƒ|jtd(dƒ|jtd)d*ƒ|jtd+d,ƒ|jtd-d.ƒ|jtd/d0ƒ|jtd1d$ƒ|jtd2d
ƒ|jtd3d4ƒ|jtd5d6ƒ|jtd7d8ƒ|jtd9d:ƒ|jtd;d<ƒ|jtd=d>ƒ|jtd?d@ƒ|jtdAdBƒ|jtdCdƒ|jdDddƒdS(ENs?yshttp://a/b/c/d;p?ys;xshttp://a/b/c/;xsg:hRIshttp://a/b/c/gs./gsg/shttp://a/b/c/g/s/gs
http://a/gs//gshttp://gsg?yshttp://a/b/c/g?ys#sshttp://a/b/c/d;p?q#ssg#sshttp://a/b/c/g#ssg?y#sshttp://a/b/c/g?y#ssg;xshttp://a/b/c/g;xsg;x?y#sshttp://a/b/c/g;x?y#sRshttp://a/b/c/d;p?qRJs
http://a/b/c/s./s..shttp://a/b/s../s../gshttp://a/b/gs../..s	http://a/s../../s../../gsg.shttp://a/b/c/g.s.gshttp://a/b/c/.gsg..shttp://a/b/c/g..s..gshttp://a/b/c/..gs./../gs./g/.sg/./hshttp://a/b/c/g/hsg/../hshttp://a/b/c/hs	g;x=1/./yshttp://a/b/c/g;x=1/ys
g;x=1/../yshttp://a/b/c/ysg?y/./xshttp://a/b/c/g?y/./xsg?y/../xshttp://a/b/c/g?y/../xsg#s/./xshttp://a/b/c/g#s/./xsg#s/../xshttp://a/b/c/g#s/../xshttp:gshttp://a/b/c/de(REtRFC3986_BASERO(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_RFC3986/sRcCsŠ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtdd	ƒ|jtd
dƒ|jtdd
ƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtddƒ|jtdd ƒ|jtd!dƒ|jtd"d	ƒ|jtd#d$ƒ|jtd%d&ƒ|jtd'd(ƒ|jtddƒ|jtddƒ|jtd)dƒ|jtd*dƒ|jtd+dƒ|jd,dd,ƒ|jd-ddƒ|jd-d$d$ƒ|jd.d/d0ƒ|jd1d/d2ƒdS(3Nsg:hshttp:gshttp://a/b/c/gshttp:shttp://a/b/c/dRIs./gsg/shttp://a/b/c/g/s/gs
http://a/gs//gshttp://gs?yshttp://a/b/c/d?ysg?yshttp://a/b/c/g?ysg?y/./xshttp://a/b/c/g?y/./xRJs
http://a/b/c/s./s..shttp://a/b/s../s../gshttp://a/b/gs../..s	http://a/s../../gs
../../../gs
http://a/../gs./../gs./g/.s/./gshttp://a/./gsg/./hshttp://a/b/c/g/hsg/../hshttp://a/b/c/hshttp:?yshttp:g?yshttp:g?y/./xshttp:///Rssvn://pathtorepo/dir1tdir2ssvn://pathtorepo/dir2ssvn+ssh://pathtorepo/dir1ssvn+ssh://pathtorepo/dir2(REtSIMPLE_BASE(R((s./usr/local/lib/python2.7/test/test_urlparse.pyt
test_urljoinsisDcCsÍxd'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>gD]@\}}}tj|ƒ}|j|j|jf||fƒqOWx3d"d#d$d%d&gD]}|jttj|ƒq©WdS(?Ns http://Test.python.org:5432/foo/stest.python.orgi8shttp://12.34.56.78:5432/foo/s12.34.56.78shttp://[::1]:5432/foo/s::1shttp://[dead:beef::1]:5432/foo/sdead:beef::1shttp://[dead:beef::]:5432/foo/sdead:beef::s:http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]:5432/foo/s'dead:beef:cafe:5417:affe:8fa3:deaf:feeds http://[::12.34.56.78]:5432/foo/s
::12.34.56.78s%http://[::ffff:12.34.56.78]:5432/foo/s::ffff:12.34.56.78shttp://Test.python.org/foo/shttp://12.34.56.78/foo/shttp://[::1]/foo/shttp://[dead:beef::1]/foo/shttp://[dead:beef::]/foo/s5http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/shttp://[::12.34.56.78]/foo/s http://[::ffff:12.34.56.78]/foo/shttp://Test.python.org:/foo/shttp://12.34.56.78:/foo/shttp://[::1]:/foo/shttp://[dead:beef::1]:/foo/shttp://[dead:beef::]:/foo/s6http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]:/foo/shttp://[::12.34.56.78]:/foo/s!http://[::ffff:12.34.56.78]:/foo/shttp://::12.34.56.78]/shttp://[::1/foo/sftp://[::1/foo/bad]/badshttp://[::1/foo/bad]/badshttp://[::ffff:12.34.56.78(s http://Test.python.org:5432/foo/stest.python.orgi8(shttp://12.34.56.78:5432/foo/s12.34.56.78i8(shttp://[::1]:5432/foo/s::1i8(shttp://[dead:beef::1]:5432/foo/sdead:beef::1i8(shttp://[dead:beef::]:5432/foo/sdead:beef::i8(s:http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]:5432/foo/s'dead:beef:cafe:5417:affe:8fa3:deaf:feedi8(s http://[::12.34.56.78]:5432/foo/s
::12.34.56.78i8(s%http://[::ffff:12.34.56.78]:5432/foo/s::ffff:12.34.56.78i8(shttp://Test.python.org/foo/stest.python.orgN(shttp://12.34.56.78/foo/s12.34.56.78N(shttp://[::1]/foo/s::1N(shttp://[dead:beef::1]/foo/sdead:beef::1N(shttp://[dead:beef::]/foo/sdead:beef::N(s5http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/s'dead:beef:cafe:5417:affe:8fa3:deaf:feedN(shttp://[::12.34.56.78]/foo/s
::12.34.56.78N(s http://[::ffff:12.34.56.78]/foo/s::ffff:12.34.56.78N(shttp://Test.python.org:/foo/stest.python.orgN(shttp://12.34.56.78:/foo/s12.34.56.78N(shttp://[::1]:/foo/s::1N(shttp://[dead:beef::1]:/foo/sdead:beef::1N(shttp://[dead:beef::]:/foo/sdead:beef::N(s6http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]:/foo/s'dead:beef:cafe:5417:affe:8fa3:deaf:feedN(shttp://[::12.34.56.78]:/foo/s
::12.34.56.78N(s!http://[::ffff:12.34.56.78]:/foo/s::ffff:12.34.56.78N(tNoneR
RRRtassertRaisest
ValueError(RRRRt	urlparsedtinvalid_url((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_RFC2732sP&
cCsmxfddddddddtdd
ftddfg
D].\}}}|jtj|ƒ||fƒq7WdS(Nshttp://python.org#fragshttp://python.orgtfragRshttp://python.org/#fragshttp://python.org/shttp://python.org/?q#fragshttp://python.org/?qshttp://python.org/p#fragshttp://python.org/pshttp://python.org/p?qshttp://a/b/c/d;p?qR=(shttp://python.org#fragshttp://python.orgR\(shttp://python.orgshttp://python.orgR(shttp://python.org/#fragshttp://python.org/R\(shttp://python.org/shttp://python.org/R(shttp://python.org/?q#fragshttp://python.org/?qR\(shttp://python.org/?qshttp://python.org/?qR(shttp://python.org/p#fragshttp://python.org/pR\(shttp://python.org/p?qshttp://python.org/p?qR(RKRORR
t	urldefrag(RRtdefragR\((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_urldefrag¹scCs˜d}tj|ƒ}|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|j
dƒ|j|jdƒ|j|jdƒd}tj|ƒ}|j|jdƒ|j|jd	ƒ|j|jdƒ|j|jd
ƒ|j|jdƒ|j|jdƒ|j|j
dƒ|j|jdƒ|j|jd
ƒ|j|j
ƒ|ƒd}tj|ƒ}|j|jdƒ|j|jdƒ|j|jdƒ|j|jd
ƒ|j|jdƒ|j|jdƒ|j|j
dƒ|j|jdƒ|j|jd
ƒ|j|j
ƒ|ƒd}tj|ƒ}|j|jdƒdS(NsHTTP://WWW.PYTHON.ORG/doc/#fragR>sWWW.PYTHON.ORGs/doc/RR\swww.python.orgs7http://User:Pass@www.python.org:080/doc/?query=yes#fragsUser:Pass@www.python.org:080s	query=yestUsertPassiPsChttp://User@example.com:Pass@www.python.org:080/doc/?query=yes#frags(User@example.com:Pass@www.python.org:080sUser@example.comshttp://www.python.org:65536(R
RRRR
RRRRRVRRRR(RRR;((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_urlsplit_attributesÈsLcCsØtjdƒ}|j|jdƒ|j|jdƒtjdƒ}|j|jdƒ|j|jdƒtjdƒ}|j|jdƒ|j|jdƒtjdƒ}|j|jdƒ|j|jdƒdS(Nstel:+31-641044153ttels
+31-641044153stel:+31641044153s+31641044153(R
RRRR(Rtp1tp2((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_issue14072ûscCs$tjdƒ}|j|jdƒ|j|jdƒ|j|jdƒtjdƒ}|j|jdƒ|j|jdƒ|j|jdƒtjdƒ}|j|jdƒ|j|jd	ƒ|j|jd
ƒtjdƒ}|j|jdƒ|j|jdƒ|j|jd
ƒdS(Ns"tel:123-4;phone-context=+1-650-516Rcs123-4sphone-context=+1-650-516stel:+1-201-555-0123s+1-201-555-0123Rs"tel:7042;phone-context=example.comt7042sphone-context=example.coms%tel:863-1234;phone-context=+1-914-555s863-1234sphone-context=+1-914-555(R
RRRR(RRd((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_telurl_paramss csztjdƒ‰|jˆjdƒ|jt‡fd†ƒtjdƒ‰|jˆjdƒ|jt‡fd†ƒdS(s$Check handling of non-integer ports.shttp://www.example.net:fooswww.example.net:foocsˆjS(N(R((R;(s./usr/local/lib/python2.7/test/test_urlparse.pyt<lambda>(RcsˆjS(N(R((R;(s./usr/local/lib/python2.7/test/test_urlparse.pyRi,RN(R
RRR
RWRX(R((R;s./usr/local/lib/python2.7/test/test_urlparse.pyttest_attributes_bad_port$scCsd}tj|ƒ}|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|j	ƒ|ƒtj|ƒ}|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|jdƒ|j|j	ƒ|ƒdS(Ns0sip:alice@atlanta.com;maddr=239.255.255.1;ttl=15R(
R
RRR
RRVRRRR(RturiR;((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_attributes_without_netloc.scCsd}t|ƒ}tj|ƒtj|ƒ}|jt|jƒt|ƒƒ|jt|jƒt|ƒƒ|jt|jƒt|ƒƒdS(Nshttp://example.com/doc/(tunicodeR
RttypeRRR(RRktunicode_uriR;((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_cachingEs
cCs|jtjdƒdƒdS(Ns http://example.com?blahblah=/fooR>sexample.comRs
blahblah=/foo(R>sexample.comRRs
blahblah=/fooR(RR
(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_noslashPscCsh|jtjdƒdƒ|jtjdƒd
ƒ|jtjdƒdƒ|jtjdƒdƒdS(Nss3://foo.com/stuffts3sfoo.coms/stuffRsx-newscheme://foo.com/stuffsx-newschemes*x-newscheme://foo.com/stuff?query#fragmentRRs!x-newscheme://foo.com/stuff?query(Rrsfoo.coms/stuffRRR(sx-newschemesfoo.coms/stuffRRR(sx-newschemesfoo.coms/stuffRRR(sx-newschemesfoo.coms/stuffRRR(RR
(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_anyschemeUscCsO|jtjdƒdƒ|jtjdƒdƒ|jtjdƒd	ƒdS(
NRRs//www.python.org:80swww.python.org:80shttp://www.python.org:80R>(RRRRRR(Rswww.python.org:80RRRR(R>swww.python.org:80RRRR(RR
(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_withoutscheme`scCsh|jtjdƒd	ƒ|jtjdƒd
ƒ|jtjdƒdƒ|jtjdƒdƒdS(
Nspath:80Rshttp:R>shttps:R?shttp://www.python.org:80swww.python.org:80(RRspath:80RRR(R>RRRRR(R?RRRRR(R>swww.python.org:80RRRR(RR
(R((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_portseparatorlsc	
Cs°d}d„|Dƒ}gtttdtjƒƒD]7}|ttj|ƒjƒƒ@r2||kr2|^q2}|j	d|ƒ|j	d|ƒt
jdƒ|jt
ƒt
jdƒWdQXx’dd	d
gD]}xxddgD]j}xa|D]Y}d
j||j|ƒƒ}tjr%d|GHn|jt
ƒt
j|ƒWdQXqïWqâWqÏW|jt
ƒ}t
jdƒWdQX|jt|jƒdƒ|j|jjdtƒdS(Nu/:#?@cSs%h|]}djt|ƒƒ’qS(s{:04X}(tformattord(t.0tc((s./usr/local/lib/python2.7/test/test_urlparse.pys	<setcomp>zs	i€uâ„€u#uhttp://プ:80uhttp://プ︓80uhttpuhttpsuftpunetloc{}false.netlocun{}user@netlocu{}://{}/pathsChecking %ruhttp://example.com#@bing.comsYnetloc u'example.com\uff03@bing.com' contains invalid characters under NFKC normalizationi(tmaptunichrtrangetsyst
maxunicodetsettunicodedatat
decompositionRtassertInR
RRWRXRvRtverboseRtstrt	exceptiontassertIsInstancetargs(	Rt
illegal_charst	hex_charsRytdenorm_charsRR
Rtcm((s./usr/local/lib/python2.7/test/test_urlparse.pyttest_urlsplit_normalizationus."

	(t__name__t
__module__R"R-R1R8R@RERHRLRNRPRRRUR[R_RbRfRhRjRlRpRqRsRtRuRŒ(((s./usr/local/lib/python2.7/test/test_urlparse.pyR	Hs2	3			
					-		*	:	$	,		3			
							cCstjtƒdS(N(Rtrun_unittestR	(((s./usr/local/lib/python2.7/test/test_urlparse.pyt	test_mainœst__main__(ttestRR}R€tunittestR
RKRORQRTR$R.tTestCaseR	RR(((s./usr/local/lib/python2.7/test/test_urlparse.pyt<module>s‚							!										ÿÿV	

Zerion Mini Shell 1.0