summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cookie.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-08-25 07:32:42 (GMT)
committerGeorg Brandl <georg@python.org>2005-08-25 07:32:42 (GMT)
commit8246c439a8246093b03e3987d6c1496ebe73b81c (patch)
tree83b3f6764e4e6f4cbad1240db9c3bba27025c472 /Lib/test/test_cookie.py
parent3fa5575fa4d06c3ae3909f5a8b4f29274767e33d (diff)
downloadcpython-8246c439a8246093b03e3987d6c1496ebe73b81c.zip
cpython-8246c439a8246093b03e3987d6c1496ebe73b81c.tar.gz
cpython-8246c439a8246093b03e3987d6c1496ebe73b81c.tar.bz2
Correct test suite for #848017.
Diffstat (limited to 'Lib/test/test_cookie.py')
-rw-r--r--Lib/test/test_cookie.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py
index 3e80b6f..c20beee 100644
--- a/Lib/test/test_cookie.py
+++ b/Lib/test/test_cookie.py
@@ -12,17 +12,17 @@ warnings.filterwarnings("ignore",
cases = [
('chips=ahoy; vienna=finger', {'chips':'ahoy', 'vienna':'finger'}),
- ('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;";',
+ ('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"',
{'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}),
# Check illegal cookies that have an '=' char in an unquoted value
- ('keebler=E=mc2;', {'keebler' : 'E=mc2'})
+ ('keebler=E=mc2', {'keebler' : 'E=mc2'})
]
for data, dict in cases:
C = Cookie.SimpleCookie() ; C.load(data)
print repr(C)
- print str(C)
+ print C.output(sep='\n')
for k, v in sorted(dict.iteritems()):
print ' ', k, repr( C[k].value ), repr(v)
verify(C[k].value == v)