MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/3/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	
					=