diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-19 15:57:33 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2000-08-19 15:57:33 (GMT) |
commit | 514a1028a20b4a818aa1f75dd674c5ee78a2f5ae (patch) | |
tree | 22fc548ce52af3b970ceecbe27f9995613ab4902 /Lib/test | |
parent | f580d27aa35aec00cf1cba03f6fcbd06283aa308 (diff) | |
download | cpython-514a1028a20b4a818aa1f75dd674c5ee78a2f5ae.zip cpython-514a1028a20b4a818aa1f75dd674c5ee78a2f5ae.tar.gz cpython-514a1028a20b4a818aa1f75dd674c5ee78a2f5ae.tar.bz2 |
Adding tests of the "attrs" optional argument, and of the js_output
functionality.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_cookie | 15 | ||||
-rw-r--r-- | Lib/test/test_cookie.py | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Lib/test/output/test_cookie b/Lib/test/output/test_cookie index d9a8194..735b847 100644 --- a/Lib/test/output/test_cookie +++ b/Lib/test/output/test_cookie @@ -5,3 +5,18 @@ Set-Cookie: chips=ahoy; chips 'ahoy' 'ahoy' Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;"; keebler 'E=mc2; L="Loves"; fudge=\012;' '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> + diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index e5c2592..9ae009d 100644 --- a/Lib/test/test_cookie.py +++ b/Lib/test/test_cookie.py @@ -24,3 +24,8 @@ C.load('Customer="WILE_E_COYOTE"; Version=1; Path=/acme') assert C['Customer'].value == 'WILE_E_COYOTE' assert C['Customer']['version'] == '1' assert C['Customer']['path'] == '/acme' + +print C.output(['path']) +print C.js_output() +print C.js_output(['path']) + |