mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
merge 3.4 (#22986)
This commit is contained in:
commit
5b883296f6
3 changed files with 7 additions and 4 deletions
|
@ -114,7 +114,7 @@ class CookieTests(unittest.TestCase):
|
|||
C['Customer']['secure'] = True
|
||||
C['Customer']['httponly'] = True
|
||||
self.assertEqual(C.output(),
|
||||
'Set-Cookie: Customer="WILE_E_COYOTE"; httponly; secure')
|
||||
'Set-Cookie: Customer="WILE_E_COYOTE"; HttpOnly; Secure')
|
||||
|
||||
def test_secure_httponly_false_if_not_present(self):
|
||||
C = cookies.SimpleCookie()
|
||||
|
@ -145,7 +145,7 @@ class CookieTests(unittest.TestCase):
|
|||
C = cookies.SimpleCookie()
|
||||
C.load('eggs = scrambled ; secure ; path = bar ; foo=foo ')
|
||||
self.assertEqual(C.output(),
|
||||
'Set-Cookie: eggs=scrambled; Path=bar; secure\r\nSet-Cookie: foo=foo')
|
||||
'Set-Cookie: eggs=scrambled; Path=bar; Secure\r\nSet-Cookie: foo=foo')
|
||||
|
||||
def test_quoted_meta(self):
|
||||
# Try cookie with quoted meta-data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue