]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adding tests of the "attrs" optional argument, and of the js_output
authorMoshe Zadka <moshez@math.huji.ac.il>
Sat, 19 Aug 2000 15:57:33 +0000 (15:57 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Sat, 19 Aug 2000 15:57:33 +0000 (15:57 +0000)
functionality.

Lib/test/output/test_cookie
Lib/test/test_cookie.py

index d9a81948892cc5900ad74a2f89fc50bf6889ab39..735b847ca78fa302ae33dba48e4d977878872fc4 100644 (file)
@@ -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>
+        
index e5c2592fdda44317807033023ec568075a471366..9ae009d73a5fdba6c68cd186ffc3394b1f45fcaa 100644 (file)
@@ -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'])
+