summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-09-29 11:05:00 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2018-09-30 12:17:11 +0200
commit22f0d9ba7fd5008ff112593f52503ab79a46ab22 (patch)
treed3a547d09153ba49d5810adb5c1f99a06e9cfb84
parent58a6e40b7bdc4adfe03e57f918ab62789cfbe366 (diff)
downloadcherrypy-git-22f0d9ba7fd5008ff112593f52503ab79a46ab22.tar.gz
Fix test issue introduced by fixing #794
Ref https://github.com/cherrypy/cherrypy/commit/96d251c
-rwxr-xr-xcherrypy/test/test_session.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/test/test_session.py b/cherrypy/test/test_session.py
index e8c4f3a7..425298b3 100755
--- a/cherrypy/test/test_session.py
+++ b/cherrypy/test/test_session.py
@@ -171,8 +171,8 @@ class SessionTest(helper.CPWebCase):
cookie_parts = dict([p.strip().split('=')
for p in self.cookies[0][1].split(';')])
# Assert there is an 'expires' param
- self.assertEqual(set(cookie_parts.keys()),
- set(['session_id', 'expires', 'Path']))
+ expected_cookie_keys = {'session_id', 'expires', 'Path', 'Max-Age'}
+ assert set(cookie_parts.keys()) == expected_cookie_keys
self.getPage('/testGen', self.cookies)
self.assertBody('2')
self.getPage('/testStr', self.cookies)