Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
514a1028
Commit
514a1028
authored
Aug 19, 2000
by
Moshe Zadka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding tests of the "attrs" optional argument, and of the js_output
functionality.
parent
f580d27a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Lib/test/output/test_cookie
Lib/test/output/test_cookie
+15
-0
Lib/test/test_cookie.py
Lib/test/test_cookie.py
+5
-0
No files found.
Lib/test/output/test_cookie
View file @
514a1028
...
...
@@ -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>
Lib/test/test_cookie.py
View file @
514a1028
...
...
@@ -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'
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment