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/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib/python2.4/test/test_urllib2net.pyc
mò
‚=5Dc@sšdkZdklZdkZdkZdkZdkZdkZdeifd„ƒYZ	deifd„ƒYZ
d„ZedjoeƒndS(N(stest_supporttURLTimeoutTestcBs)tZdZd„Zd„Zd„ZRS(Nf10.0cCsti|iƒdS(N(tsockettsetdefaulttimeouttselftTIMEOUT(R((t*/usr/lib/python2.4/test/test_urllib2net.pytsetUpscCstidƒdS(N(RRtNone(R((RttearDownscCstidƒ}|iƒ}dS(Nshttp://www.python.org/(turllib2turlopentftreadtx(RR
R((RttestURLreads(t__name__t
__module__RRRR(((RRs		turlopenNetworkTestscBs2tZdZd„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tclosetinfotgeturls3object returned from urlopen lacks the %s attributescalling 'read' failed(sreadscloseRR(	R	R
topen_urltattrRtassert_thasattrRR(RRR((Rt
test_basic)s!cCsctidƒ}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_objRRRt
isinstancet	mimetoolstMessagetassertEqualt
getsubtype(RRR((Rt	test_info4s
cCsGd}ti|ƒ}z|iƒ}Wd|iƒX|i||ƒdS(Nshttp://www.python.org/(	tURLR	R
RRt
gotten_urlRRR(RR"R#R((Rttest_geturl@scCs|ittidƒdS(Nshttp://www.python.invalid/(RtassertRaisestIOErrorR	R
(R((Rttest_bad_addressJs	(RRt__doc__RR!R$R'(((RRs

			
cCs!tidƒtittƒdS(Ntnetwork(ttest_supporttrequirestrun_unittestRR(((Rt	test_mainWs
t__main__(
tunittestttestR*RR	tsystosRtTestCaseRRR-R(
R*RRRR/R	RR1R-R2((Rt?s	
					=	


Anon7 - 2021