File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ def index():
246
246
rv = app .test_client ().get ('/' , 'http://www.example.com:8080/test/' )
247
247
cookie = rv .headers ['set-cookie' ].lower ()
248
248
self .assert_in ('domain=.example.com' , cookie )
249
- self .assert_in ('path=/; ' , cookie )
249
+ self .assert_in ('path=/' , cookie )
250
250
self .assert_in ('secure' , cookie )
251
251
self .assert_not_in ('httponly' , cookie )
252
252
@@ -281,7 +281,7 @@ def test():
281
281
client = app .test_client ()
282
282
rv = client .get ('/' )
283
283
self .assert_in ('set-cookie' , rv .headers )
284
- match = re .search (r'\bexpires=([^;]+)' , rv .headers ['set-cookie' ])
284
+ match = re .search (r'\bexpires=([^;]+)(?i) ' , rv .headers ['set-cookie' ])
285
285
expires = parse_date (match .group ())
286
286
expected = datetime .utcnow () + app .permanent_session_lifetime
287
287
self .assert_equal (expires .year , expected .year )
You can’t perform that action at this time.
0 commit comments