From 514a1028a20b4a818aa1f75dd674c5ee78a2f5ae Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Sat, 19 Aug 2000 15:57:33 +0000 Subject: Adding tests of the "attrs" optional argument, and of the js_output functionality. --- Lib/test/output/test_cookie | 15 +++++++++++++++ Lib/test/test_cookie.py | 5 +++++ 2 files changed, 20 insertions(+) (limited to 'Lib') diff --git a/Lib/test/output/test_cookie b/Lib/test/output/test_cookie index d9a8194889..735b847ca7 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; + + + + + + diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index e5c2592fdd..9ae009d73a 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']) + -- cgit v1.2.1