summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_http_cookies.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-05-20 04:05:16 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-05-20 04:05:16 (GMT)
commit00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5 (patch)
tree3f59b680031202320fa1cf96bc1ef41c6e3d23c3 /Lib/test/test_http_cookies.py
parent079bfc962d838cb80a008ad3d949222256e1228d (diff)
downloadcpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.zip
cpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.tar.gz
cpython-00c2ec282e1653a67bb99c5f96eb2cbf64b19ab5.tar.bz2
Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
Diffstat (limited to 'Lib/test/test_http_cookies.py')
-rw-r--r--Lib/test/test_http_cookies.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_http_cookies.py b/Lib/test/test_http_cookies.py
index f9a98c4..1f1ca58 100644
--- a/Lib/test/test_http_cookies.py
+++ b/Lib/test/test_http_cookies.py
@@ -86,13 +86,13 @@ class CookieTests(unittest.TestCase):
# loading 'expires'
C = cookies.SimpleCookie()
- C.load('Customer="W"; expires=Wed, 01-Jan-2010 00:00:00 GMT')
+ C.load('Customer="W"; expires=Wed, 01 Jan 2010 00:00:00 GMT')
self.assertEqual(C['Customer']['expires'],
- 'Wed, 01-Jan-2010 00:00:00 GMT')
+ 'Wed, 01 Jan 2010 00:00:00 GMT')
C = cookies.SimpleCookie()
- C.load('Customer="W"; expires=Wed, 01-Jan-98 00:00:00 GMT')
+ C.load('Customer="W"; expires=Wed, 01 Jan 98 00:00:00 GMT')
self.assertEqual(C['Customer']['expires'],
- 'Wed, 01-Jan-98 00:00:00 GMT')
+ 'Wed, 01 Jan 98 00:00:00 GMT')
# 'max-age'
C = cookies.SimpleCookie('Customer="WILE_E_COYOTE"')