config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_urllib2net.pyc

³ò
h”Rc@s
ddkZddklZddklZddkZddkZddkZddkZddk	Z	dei
fd„ƒYZdei
fd„ƒYZdei
fd	„ƒYZ
d
ei
fd„ƒYZdei
fd
„ƒYZd„ZedjoeƒndS(iÿÿÿÿN(ttest_support(tsanepathname2urltURLTimeoutTestcBs)eZdZd„Zd„Zd„ZRS(g$@cCsti|iƒdS(N(tsockettsetdefaulttimeouttTIMEOUT(tself((s0/usr/local/lib/python2.5/test/test_urllib2net.pytsetUpscCstidƒdS(N(RRtNone(R((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttearDownscCstidƒ}|iƒ}dS(Nshttp://www.python.org/(turllib2turlopentread(Rtftx((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttestURLreads(t__name__t
__module__RRR	R(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyR
s		t	AuthTestscBseZdZRS(s&Tests urllib2 authentication features.(RRt__doc__(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyRstCloseSocketTestcBseZd„ZRS(cCsÈddk}ddk}ddk}tidƒ}|i}|i|i|ijƒ|i	}|i|i|i
jƒ|i}|i|i|ijƒ|i|iƒ|iƒ|i|iƒdS(Niÿÿÿÿshttp://www.python.org/(
RthttplibtgcR
Rtfptassert_t	__class__t_fileobjectt_socktHTTPResponsetclosedtclose(RRRRtresponsetabused_fileobjectthttpresponset
fileobject((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt
test_closeEs$			
(RRR#(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyRCsturlopenNetworkTestscBs2eZdZd„Zd„Zd„Zd„ZRS(s6Tests urllib2.urlopen using the network.

    These tests are not exhaustive.  Assuming that testing using files does a
    good job overall of some of the basic interface features.  There are no
    tests exercising the optional 'data' and 'proxies' arguments.  No tests
    for transparent redirection have been written.

    setUp is not used for always constructing a connection to
    http://www.python.org/ since there a few tests that don't use that address
    and making a connection is expensive enough to warrant minimizing unneeded
    connections.

    cCsitidƒ}x+dD]#}|it||ƒd|ƒqWz|i|iƒdƒWd|iƒXdS(	Nshttp://www.python.org/RRtinfotgeturls3object returned from urlopen lacks the %s attributescalling 'read' failed(sreadsclosesinfosgeturl(R
RRthasattrRR(Rtopen_urltattr((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt
test_basicgscCsctidƒ}z|iƒ}Wd|iƒ|it|tiƒdƒ|i|i	ƒdƒXdS(Nshttp://www.python.org/sAobject returned by 'info' is not an instance of mimetools.Messagethtml(
R
RR%RRt
isinstancet	mimetoolstMessagetassertEqualt
getsubtype(RR(tinfo_obj((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt	test_infors
cCsGd}ti|ƒ}z|iƒ}Wd|iƒX|i||ƒdS(Nshttp://www.python.org/(R
RR&RR/(RtURLR(t
gotten_url((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttest_geturl~scCs|ittidƒdS(Nshttp://www.python.invalid./(tassertRaisestIOErrorR
R(R((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttest_bad_addressˆs	(RRRR*R2R5R8(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyR$Xs

			
tOtherNetworkTestscBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCsdS(N((R((s0/usr/local/lib/python2.5/test/test_urllib2net.pyR—scCsStiddhdd<ƒ}ti|ƒ}|iƒ}|it|ƒdƒdS(Nshttp://www.python.orgtheaderssbytes=20-39tRangei(R
tRequestRRR/tlen(Rtreqtresulttdata((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt
test_ranges
cCs)dddg}|i||iƒƒdS(Ns-ftp://www.python.org/pub/python/misc/sousa.aus!ftp://www.python.org/pub/tmp/blats[ftp://gatekeeper.research.compaq.com/pub/DEC/SRC/research-reports/00README-Legal-Rules-Regs(t
_test_urlst_extra_handlers(Rturls((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttest_ftp§s	cCsHddk}|iddtdƒddg}|i||iƒƒdS(Niÿÿÿÿtignores"the gopherlib module is deprecatedsurllib2$s4gopher://gopher.lib.ncsu.edu./11/library/stacks/Alexs#gopher://gopher.vt.edu.:10010/10/33(twarningstfilterwarningstDeprecationWarningRBRC(RRGRD((s0/usr/local/lib/python2.5/test/test_urllib2net.pyttest_gopher°s		cCs’ti}t|dƒ}ze|idƒ|iƒdttii|ƒƒddt
tiffg}|i
||iƒƒWdti|ƒXdS(Ntws	hi there
sfile:sfile://nonsensename/etc/passwd(RtTESTFNtopentwriteRRtostpathtabspathRtEnvironmentErrorRterrorRBRCtremove(RRLR
RD((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt	test_file½s	

cCs,ddddg}|i||iƒƒdS(Nshttp://www.espn.com/s)http://www.python.org/Spanish/Inquistion/s%http://www.python.org/cgi-bin/faqw.pys:query=pythonistas&querytype=simple&casefold=yes&req=searchshttp://www.python.org/(s%http://www.python.org/cgi-bin/faqw.pys:query=pythonistas&querytype=simple&casefold=yes&req=searchN(RRBRC(RRD((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt	test_httpÎs	cCsWddk}ddk}ddk}|idƒi}titi|Œƒx|D]ü}t|t	ƒo|\}}}	nd}}	||ƒyti||ƒ}
Wnet|i
tfj
oM}||ƒ|	o3d|	|||f}|it||	ƒ|ƒq8n,X|
iƒ}
|
iƒ|dt|
ƒƒ|dƒ|idƒqSWdS(Niÿÿÿÿttest_urllib2s1Didn't get expected error(s) %s for %s %s, got %ss
read %d bytess******** next url coming up...gš™™™™™¹?(Rttimetloggingt	getLoggertdebugR
tinstall_openertbuild_openerR,ttupleRRR7RStOSErrorRRRR=tsleep(RRDthandlersRRXRYR[turlR>texpected_errR
terrtmsgtbuf((s0/usr/local/lib/python2.5/test/test_urllib2net.pyRBôs0


"

cCs@g}|itiƒtiƒ}|idƒ|i|ƒ|S(Ni(tappendR
t
GopherHandlertCacheFTPHandlert
setTimeout(RRatcfh((s0/usr/local/lib/python2.5/test/test_urllib2net.pyRCs

(
RRRRARERJRURVRBRC(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyR9–s		
			
		&	cCs*tidƒtitttttƒdS(Ntnetwork(Rtrequirestrun_unittestRR$RR9R(((s0/usr/local/lib/python2.5/test/test_urllib2net.pyt	test_mains
	t__main__(tunittestttestRttest.test_urllib2RRR
tsysROR-tTestCaseRRRR$R9RoR(((s0/usr/local/lib/python2.5/test/test_urllib2net.pys<module>s'>‡		


Man Man