%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_cookie.pyc

ó
Nêáac@s|ddlmZmZmZddlZddlZddlZdejfd„ƒYZd„Z	e
dkrxe	ƒndS(iÿÿÿÿ(trun_unittesttrun_doctesttcheck_warningsNtCookieTestscBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(c	Csmidd6idd6dd6d6dd	6d
d6idd6id
d6d6dd	6dd6idd6idd6d6dd	6dd6idd6idd6dd6dd6dd6d6dd	6djd%ƒd6g}x£|D]›}tjƒ}|j|dƒ|jt|ƒ|d	ƒ|j|jd$dƒ|dƒx;t|djƒƒD]#\}}|j||j	|ƒq>WqÊWdS(&Nschips=ahoy; vienna=fingertdatatahoytchipstfingertviennatdicts,<SimpleCookie: chips='ahoy' vienna='finger'>treprs0Set-Cookie: chips=ahoy
Set-Cookie: vienna=fingertoutputs)keebler="E=mc2; L=\"Loves\"; fudge=\012;"sE=mc2; L="Loves"; fudge=
;tkeeblers5<SimpleCookie: keebler='E=mc2; L="Loves"; fudge=\n;'>s5Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;"s
keebler=E=mc2sE=mc2s<SimpleCookie: keebler='E=mc2'>sSet-Cookie: keebler=E=mc2sa=b; c=[; d=r; f=htbtat[tctrtdthtfs'<SimpleCookie: a='b' c='[' d='r' f='h'>s
sSet-Cookie: a=bsSet-Cookie: c=[sSet-Cookie: d=rsSet-Cookie: f=htsep(sSet-Cookie: a=bsSet-Cookie: c=[sSet-Cookie: d=rsSet-Cookie: f=h(
tjointCookietSimpleCookietloadtassertEqualR
Rtsortedt	iteritemstvalue(tselftcasestcasetCtktv((s,/usr/local/lib/python2.7/test/test_cookie.pyt
test_basics8


#
 #cCstjƒ}|jdƒ|j|djdƒ|j|dddƒ|j|dddƒ|j|jdgƒdƒ|j|jƒd	ƒ|j|jdgƒd
ƒtjƒ}|jdƒ|j|ddd
ƒtjƒ}|jdƒ|j|dddƒdS(Ns/Customer="WILE_E_COYOTE"; Version=1; Path=/acmetCustomert
WILE_E_COYOTEtversiont1tpaths/acmes0Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acmesÆ
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = "Customer=\"WILE_E_COYOTE\"; Path=/acme; Version=1";
        // end hiding -->
        </script>
        s»
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = "Customer=\"WILE_E_COYOTE\"; Path=/acme";
        // end hiding -->
        </script>
        s3Customer="W"; expires=Wed, 01 Jan 2010 00:00:00 GMTtexpiressWed, 01 Jan 2010 00:00:00 GMTs1Customer="W"; expires=Wed, 01 Jan 98 00:00:00 GMTsWed, 01 Jan 98 00:00:00 GMT(RRRRRRt	js_output(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyt	test_load7s&


cCs6tjƒ}d|d<|j|jdgƒdƒdS(Nssome,funky;stufftvals(Set-Cookie: val="some\054funky\073stuff"(RRRR(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_extended_encodeZs
cCsEtjdƒ}t|dd<t|dd<|j|jƒdƒdS(NsCustomer="WILE_E_COYOTE"R%tsecurethttponlys6Set-Cookie: Customer="WILE_E_COYOTE"; httponly; secure(RRtTrueRR(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_set_secure_httponly_attrsbs
cCsGtjƒ}|jdƒ|j|ddƒ|j|ddƒdS(Nseggs=scrambled; Path=/baconteggsR0R/(RRRtassertFalse(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyt)test_secure_httponly_false_if_not_presentis
cCsGtjƒ}|jdƒ|j|ddƒ|j|ddƒdS(Ns-eggs=scrambled; httponly; secure; Path=/baconR3R0R/(RRRt
assertTrue(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyt$test_secure_httponly_true_if_presentos
cCswtjƒ}|jdƒ|j|ddƒ|j|ddƒ|j|dddƒ|j|dddƒdS(Ns5eggs=scrambled; httponly=foo; secure=bar; Path=/baconR3R0R/tfootbar(RRRR6R(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyt'test_secure_httponly_true_if_have_valuevs
cCs3tjƒ}|jdƒ|j|jƒdƒdS(Ns-cookie=with; invalid; version; second=cookie;s2Set-Cookie: cookie=with
Set-Cookie: second=cookie(RRRRR(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_bad_attrs‚s
cCs3tjƒ}|jdƒ|j|jƒdƒdS(Ns=eggs  =  scrambled  ;  secure  ;  path  =  bar   ; foo=foo   sASet-Cookie: eggs=scrambled; Path=bar; secure
Set-Cookie: foo=foo(RRRRR(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_extra_spaces‰s
cCsdtjƒ}|jdƒ|j|djdƒ|j|dddƒ|j|dddƒdS(Ns3Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"R%R&R'R(R)s/acme(RRRRR(RR!((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_quoted_metas

cCsZtjƒ}xGdD]?}|j|ƒ|jt|ƒiƒ|j|jƒdƒqWdS(Ns]foo=xs[foo=xs
blah]foo=xs
blah[foo=xt(s]foo=xs[foo=xs
blah]foo=xs
blah[foo=x(RRRRR	R(RR!ts((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_invalid_cookies—s


cCs•d}d|}tjƒ}|j|ƒ|j|jƒ|ƒxOttjdƒD]:}tjtj	|d|ƒƒ}|j|jƒ|ƒqSWdS(Ns/Customer="WILE_E_COYOTE"; Path=/acme; Version=1sSet-Cookie: %sitprotocol(
RRRRRtrangetpickletHIGHEST_PROTOCOLtloadstdumps(Rtrawdatatexpected_outputR!tprototC1((s,/usr/local/lib/python2.7/test/test_cookie.pyttest_pickleŸs

(t__name__t
__module__R$R,R.R2R5R7R:R;R<R=R@RK(((s,/usr/local/lib/python2.7/test/test_cookie.pyR	s	,	#									cCsCttƒtjdk	r?tdtfƒttƒWdQXndS(Ns).+Cookie class is insecure; do not use it(RRRt__doc__tNoneRtDeprecationWarningR(((s,/usr/local/lib/python2.7/test/test_cookie.pyt	test_main¬s


t__main__(ttest.test_supportRRRtunittestRRCtTestCaseRRQRL(((s,/usr/local/lib/python2.7/test/test_cookie.pyt<module>s£	

Zerion Mini Shell 1.0