cpython/Lib/test/output/test_cookie
Andrew M. Kuchling 103d5268c2 Updated test suite: test repr() and str() of cookies, and test metadata
fields with quoted values (as in Path="/acme")
2000-08-24 11:56:19 +00:00

28 lines
879 B
Plaintext

test_cookie
<SimpleCookie: vienna='finger' chips='ahoy'>
Set-Cookie: vienna=finger;
Set-Cookie: chips=ahoy;
vienna 'finger' 'finger'
Set-Cookie: vienna=finger;
chips 'ahoy' 'ahoy'
Set-Cookie: chips=ahoy;
<SimpleCookie: keebler='E=mc2; L="Loves"; fudge=\012;'>
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
keebler 'E=mc2; L="Loves"; fudge=\012;' 'E=mc2; L="Loves"; fudge=\012;'
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1;"
// end hiding -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme;"
// end hiding -->
</script>