KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/test/test_urllibnet.pyc
mς
‚=5Dc@s³dkZdklZdkZdkZdkZdkZdkZdeifd„ƒYZ	deifd„ƒYZ
deifd„ƒYZd„Ze
d	joeƒndS(
N(stest_supporttURLTimeoutTestcBs)tZdZd„Zd„Zd„ZRS(Nf10.0cCsti|iƒdS(N(tsockettsetdefaulttimeouttselftTIMEOUT(R((t+/usr/lib64/python2.4/test/test_urllibnet.pytsetUpscCstidƒdS(N(RRtNone(R((RttearDownscCstidƒ}|iƒ}dS(Nshttp://www.python.org/(turllibturlopentftreadtx(RR
R((RttestURLreads(t__name__t
__module__RRRR(((RRs		turlopenNetworkTestscBsDtZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s5Tests urllib.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treadlinet	readlinestfilenotclosetinfotgeturls3object returned from urlopen lacks the %s attributescalling 'read' failed(sreadsreadlines	readlinessfilenosclosesinfoR(	R	R
topen_urltattrRtassert_thasattrRR(RRR((Rt
test_basic)s!cCsctidƒ}zB|it|iƒtƒdƒ|it|iƒt	ƒdƒWd|i
ƒXdS(Nshttp://www.python.org/s readline did not return a stringsreadlines did not return a list(R	R
RRRt
isinstanceRt
basestringRtlistR(RR((Rttest_readlines5scCsctidƒ}z|iƒ}Wd|iƒ|it|t	i
ƒdƒ|i|iƒdƒXdS(Nshttp://www.python.org/sAobject returned by 'info' is not an instance of mimetools.Messagethtml(
R	R
RRtinfo_objRRRRt	mimetoolstMessagetassertEqualt
getsubtype(RR"R((Rt	test_info@s
cCsGd}ti|ƒ}z|iƒ}Wd|iƒX|i||ƒdS(Nshttp://www.python.org/(	tURLR	R
RRt
gotten_urlRRR%(RR(RR)((Rttest_geturlLscCstidjpttdƒodSntidƒ}|iƒ}ti	|ƒ}z|i|i
ƒdƒWd|iƒXdS(Ntwin32tfdopenshttp://www.python.org/s<reading from file created using fd returned by fileno failed(swin32(tsystplatformRtosR	R
RRtfdR,tFILERRRR(RRR0R1((Rttest_filenoVs!cCs|ittidƒdS(Nshttp://www.python.invalid/(RtassertRaisestIOErrorR	R
(R((Rttest_bad_addressfs	(	RRt__doc__RR R'R*R2R5(((RRs
				
	turlretrieveNetworkTestscBs)tZdZd„Zd„Zd„ZRS(s+Tests urllib.urlretrieve using the network.cCsvtidƒ\}}|itii|ƒdƒt	|ƒ}z|i|iƒdƒWd|iƒti
|ƒXdS(Nshttp://www.python.org/s9file location returned by urlretrieve is not a valid paths=reading from the file location returned by urlretrieve failed(R	turlretrievet
file_locationRRRR/tpathtexiststfileR1RRtunlink(RRR9R1((RRvs
cCsŒtidtiƒ\}}|i|tiƒ|it	i
i|ƒƒt|ƒ}z|i|iƒdƒWd|iƒt	i|ƒXdS(Nshttp://www.python.org/s"reading from temporary file failed(R	R8ttest_supporttTESTFNR9RRR%RR/R:R;R<R1RRR=(RRR9R1((Rttest_specified_pathƒs	
cCsBtidƒ\}}ti|ƒ|it|t	i
ƒdƒdS(Nshttp://www.python.org/s.header is not an instance of mimetools.Message(R	R8R9theaderR/R=RRRR#R$(RR9RA((Rttest_headers
(RRR6RR@RB(((RR7ss	
	
cCs$tidƒtitttƒdS(Ntnetwork(R>trequirestrun_unittestRRR7(((Rt	test_main™s
	t__main__(tunittestttestR>RR	R-R/R#tTestCaseRRR7RFR(R>R#RRRHRR	R-RFR7R/((Rt?s	
					Y&	


Anon7 - 2021