Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 514a102

Browse files
author
Moshe Zadka
committed
Adding tests of the "attrs" optional argument, and of the js_output
functionality.
1 parent f580d27 commit 514a102

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lib/test/output/test_cookie

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@ Set-Cookie: chips=ahoy;
55
chips 'ahoy' 'ahoy'
66
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
77
keebler 'E=mc2; L="Loves"; fudge=\012;' 'E=mc2; L="Loves"; fudge=\012;'
8+
Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
9+
10+
<SCRIPT LANGUAGE="JavaScript">
11+
<!-- begin hiding
12+
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1;"
13+
// end hiding -->
14+
</script>
15+
16+
17+
<SCRIPT LANGUAGE="JavaScript">
18+
<!-- begin hiding
19+
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme;"
20+
// end hiding -->
21+
</script>
22+

Lib/test/test_cookie.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@
2424
assert C['Customer'].value == 'WILE_E_COYOTE'
2525
assert C['Customer']['version'] == '1'
2626
assert C['Customer']['path'] == '/acme'
27+
28+
print C.output(['path'])
29+
print C.js_output()
30+
print C.js_output(['path'])
31+

0 commit comments

Comments
 (0)