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_urllibnet.pyc

³ò
h”Rc
@sÈddkZddklZddkZddkZddkZddkZddkZdeifd„ƒYZ	deifd„ƒYZ
deifd„ƒYZd	„Ze
d
joeƒndS(iÿÿÿÿN(ttest_supporttURLTimeoutTestcBs)eZdZd„Zd„Zd„ZRS(g$@cCsti|iƒdS(N(tsockettsetdefaulttimeouttTIMEOUT(tself((s//usr/local/lib/python2.5/test/test_urllibnet.pytsetUpscCstidƒdS(N(RRtNone(R((s//usr/local/lib/python2.5/test/test_urllibnet.pyttearDownscCstidƒ}|iƒ}dS(Nshttp://www.python.org/(turllibturlopentread(Rtftx((s//usr/local/lib/python2.5/test/test_urllibnet.pyttestURLreads(t__name__t
__module__RRRR(((s//usr/local/lib/python2.5/test/test_urllibnet.pyRs		turlopenNetworkTestscBsDeZdZd„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/Rtreadlinet	readlinestfilenotclosetinfotgeturls3object returned from urlopen lacks the %s attributescalling 'read' failed(sreadsreadlines	readlinessfilenosclosesinfosgeturl(R	R
tassert_thasattrRR(Rtopen_urltattr((s//usr/local/lib/python2.5/test/test_urllibnet.pyt
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
Rt
isinstanceRt
basestringRtlistR(RR((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_readlines5scCsctidƒ}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	R
RRRRt	mimetoolstMessagetassertEqualt
getsubtype(RRtinfo_obj((s//usr/local/lib/python2.5/test/test_urllibnet.pyt	test_info@s
cCsGd}ti|ƒ}z|iƒ}Wd|iƒX|i||ƒdS(Nshttp://www.python.org/(R	R
RRR$(RtURLRt
gotten_url((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_geturlLscCstidjpttdƒ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
RR,RRR(RRtfdtFILE((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_filenoVscCs|ittidƒdS(Nshttp://www.python.invalid./(tassertRaisestIOErrorR	R
(R((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_bad_addressfs	(	RRt__doc__RR R'R*R2R5(((s//usr/local/lib/python2.5/test/test_urllibnet.pyRs
				
	turlretrieveNetworkTestscBs)eZdZd„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	turlretrieveRR/tpathtexiststfileRRtunlink(Rt
file_locationRR1((s//usr/local/lib/python2.5/test/test_urllibnet.pyRvs
cCsŒtidtiƒ\}}|i|tiƒ|itii|ƒƒt	|ƒ}z|i|i
ƒdƒWd|iƒti|ƒXdS(Nshttp://www.python.org/s"reading from temporary file failed(
R	R8RtTESTFNR$RR/R9R:R;RRR<(RR=RR1((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_specified_pathƒs	
cCsBtidƒ\}}ti|ƒ|it|tiƒdƒdS(Nshttp://www.python.org/s.header is not an instance of mimetools.Message(R	R8R/R<RRR"R#(RR=theader((s//usr/local/lib/python2.5/test/test_urllibnet.pyttest_headers
(RRR6RR?RA(((s//usr/local/lib/python2.5/test/test_urllibnet.pyR7ss	
	
cCs$tidƒtitttƒdS(Ntnetwork(Rtrequirestrun_unittestRRR7(((s//usr/local/lib/python2.5/test/test_urllibnet.pyt	test_main™s
	t__main__(tunittestttestRRR	R-R/R"tTestCaseRRR7RER(((s//usr/local/lib/python2.5/test/test_urllibnet.pys<module>sY&	


Man Man