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

³ò
h”Rc@sÅddkZddkZddkZddklZddklZddd„ƒYZdeifd„ƒYZdefd	„ƒYZ	d
„Zd„Z
defd
„ƒYZdd„Z
eƒdS(iÿÿÿÿN(tTestCase(ttest_supportt
FakeSocketcBs,eZeid„Zd„Zdd„ZRS(cCs||_||_dS(N(ttextt	fileclass(tselfRR((s-/usr/local/lib/python2.5/test/test_httplib.pyt__init__
s	cCs
||_dS(N(tdata(RR((s-/usr/local/lib/python2.5/test/test_httplib.pytsendallscCs:|djo|djotiƒ‚n|i|iƒS(Ntrtrb(thttplibtUnimplementedFileModeRR(Rtmodetbufsize((s-/usr/local/lib/python2.5/test/test_httplib.pytmakefilesN(t__name__t
__module__tStringIORRtNoneR(((s-/usr/local/lib/python2.5/test/test_httplib.pyR	s	t
NoEOFStringIOcBs&eZdZdd„Zdd„ZRS(s¨Like StringIO, but raises AssertionError on EOF.

    This is used below to test that httplib doesn't try to read
    more from the underlying file than it should.
    iÿÿÿÿcCs6tii||ƒ}|djotdƒ‚n|S(Ntscaller tried to read past EOF(RtreadtAssertionError(RtnR((s-/usr/local/lib/python2.5/test/test_httplib.pyRs
cCs6tii||ƒ}|djotdƒ‚n|S(NRscaller tried to read past EOF(RtreadlineR(RtlengthR((s-/usr/local/lib/python2.5/test/test_httplib.pyR"s
N(RRt__doc__RRR(((s-/usr/local/lib/python2.5/test/test_httplib.pyRstHeaderTestscBseZd„ZRS(cCsÛddk}dtfd„ƒY}x²ttfD]¤}x›d
D]“}|idƒ}tdƒ|_|ƒ|_d	}h}|ott	|ƒƒ||<n|i
d
d||ƒ|i|ii|i
ƒdƒq<Wq/WdS(NiÿÿÿÿtHeaderCountingBuffercBseZd„Zd„ZRS(cSs
h|_dS(N(tcount(R((s-/usr/local/lib/python2.5/test/test_httplib.pyR1scSsp|idƒ}t|ƒdjo:|diƒ}|ii|dƒ|i|cd7<nti||ƒdS(Nt:ii(tsplittlentlowerRt
setdefaulttlisttappend(RtitemtkvtlcKey((s-/usr/local/lib/python2.5/test/test_httplib.pyR%3s(RRRR%(((s-/usr/local/lib/python2.5/test/test_httplib.pyR0s	sContent-lengthtHostsAccept-encodingsexample.comtblahblahblahtspamspamspamtPOSTt/i(sContent-lengthR)sAccept-encoding(RR$tTruetFalsetHTTPConnectionRtsockt_buffertstrR!trequesttassertEqualRR"(RRRtexplicit_headertheadertconntbodytheaders((s-/usr/local/lib/python2.5/test/test_httplib.pyttest_auto_headers*s
(RRR;(((s-/usr/local/lib/python2.5/test/test_httplib.pyR)scCsktiƒ}ti}z|t_tƒWd|t_X|iƒ}x"|idƒD]}|iƒGHqRWdS(Ns
(Rtsyststdoutt_testtgetvalueR tstrip(tbuft_stdouttstline((s-/usr/local/lib/python2.5/test/test_httplib.pyttestMs		
c

CsMd}t|ƒ}ti|dƒ}|iƒ|iƒGH|iƒd}t|ƒ}ti|dƒ}y|iƒWntij
odGHnXdGHxDdD]<}yti|ƒ}Wntij
odGHqŸXd	GHqŸWx¯ddd d!fD]›\}}}yti|ƒ}Wntij
odGHnX|i	}||i
jotd||i
f‚n||ijotd||i
f‚qòqòWd}d}	t|ƒ}
ti|
dƒ}|iƒ|i
dƒ}||	jo
td‚ntdtƒ}ti|dddƒ}|iƒ|iƒdjo
td‚n|iƒdS("NsHTTP/1.1 200 Ok

TextisHTTP/1.1 400.100 Not Ok

Texts BadStatusLine raised as expectedsExpect BadStatusLineswww.python.org:abcswww.python.org:sInvalidURL raised as expectedsExpect InvalidURLs[fe80::207:e9ff:fe9b]:8000sfe80::207:e9ff:fe9bi@swww.python.org:80swww.python.orgiPs[fe80::207:e9ff:fe9b]sInvalidURL raised erroneouslysHost incorrectly parsedsPort incorrectly parseds¨HTTP/1.1 200 OK
Set-Cookie: Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"
Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme"

No body
srCustomer="WILE_E_COYOTE"; Version="1"; Path="/acme", Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme"s
Set-Cookies&multiple headers not combined properlys*HTTP/1.1 200 OK
Content-Length: 14432

tmethodtHEADRs)Did not expect response from HEAD request(swww.python.org:abcswww.python.org:(s[fe80::207:e9ff:fe9b]:8000sfe80::207:e9ff:fe9bi@(swww.python.org:80swww.python.orgiP(swww.python.orgswww.python.orgiP(s[fe80::207:e9ff:fe9b]sfe80::207:e9ff:fe9biP(RRtHTTPResponsetbeginRtcloset
BadStatusLinetHTTPt
InvalidURLt_connthostRtportt	getheaderR(
R9R1trespthpthtpthttptcRthdrRCR	tcookies((s-/usr/local/lib/python2.5/test/test_httplib.pyR>[sf



	
	


	

tOfflineTestcBseZd„ZRS(cCs|ititidƒdS(Ns	Not Found(tassertEqualsRt	responsest	NOT_FOUND(R((s-/usr/local/lib/python2.5/test/test_httplib.pyttest_responses¥s(RRR^(((s-/usr/local/lib/python2.5/test/test_httplib.pyRZ¤scCsttg}ti|ŒdS(N(RRZRtrun_unittest(tverbosettests((s-/usr/local/lib/python2.5/test/test_httplib.pyt	test_main¨s((RRR<tunittestRRERRRRR>RZRRb(((s-/usr/local/lib/python2.5/test/test_httplib.pys<module>s
$		I

Man Man