diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-02-21 01:17:54 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-02-21 01:17:54 (GMT) |
commit | 8b94b1c74a5d81ec0db14b0f1d4b65e6b592a680 (patch) | |
tree | fc5f522f801cb1a14e8ce76e0229375945415570 /Lib/test | |
parent | 715346060abe7385376aaeaa4da57dd6b7513e92 (diff) | |
download | cpython-8b94b1c74a5d81ec0db14b0f1d4b65e6b592a680.zip cpython-8b94b1c74a5d81ec0db14b0f1d4b65e6b592a680.tar.gz cpython-8b94b1c74a5d81ec0db14b0f1d4b65e6b592a680.tar.bz2 |
Added test for patch #103473: test an unquoted cookie value containing '='
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_cookie | 4 | ||||
-rw-r--r-- | Lib/test/test_cookie.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/output/test_cookie b/Lib/test/output/test_cookie index 8ef2ce7..c04bfee 100644 --- a/Lib/test/output/test_cookie +++ b/Lib/test/output/test_cookie @@ -10,6 +10,10 @@ Set-Cookie: chips=ahoy; Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;"; keebler 'E=mc2; L="Loves"; fudge=\n;' 'E=mc2; L="Loves"; fudge=\n;' Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;"; +<SimpleCookie: keebler='E=mc2'> +Set-Cookie: keebler=E=mc2; + keebler 'E=mc2' 'E=mc2' +Set-Cookie: keebler=E=mc2; Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme; <SCRIPT LANGUAGE="JavaScript"> diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index 87d0521..df592f3 100644 --- a/Lib/test/test_cookie.py +++ b/Lib/test/test_cookie.py @@ -10,6 +10,9 @@ cases = [ ('chips=ahoy; vienna=finger', {'chips':'ahoy', 'vienna':'finger'}), ('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;";', {'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}), + + # Check illegal cookies that have an '=' char in an unquoted value + ('keebler=E=mc2;', {'keebler' : 'E=mc2'}) ] for data, dict in cases: |