Skip to content

Commit

Permalink
Add IE support for cookie deletion. Python 3.4 related test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Kutepov committed Jul 23, 2016
1 parent aecee67 commit da16fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def test_response_cookies():
'Set-Cookie: name=another_other_value; Max-Age=10; Path=/')

resp.del_cookie('name')
expected = ('Set-Cookie: name=""; '
expected = ('Set-Cookie: name=("")?; '
'expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/')
assert re.match(expected, str(resp.cookies))

Expand Down Expand Up @@ -493,8 +493,8 @@ def test_response_cookie__issue_del_cookie():
assert str(resp.cookies) == ''

resp.del_cookie('name')
expected = ('Set-Cookie: name=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; '
'Max-Age=0; Path=/')
expected = ('Set-Cookie: name=("")?; '
'expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/')
assert re.match(expected, str(resp.cookies))


Expand Down

0 comments on commit da16fd9

Please sign in to comment.