MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_set_cookie_max_age

Method test_set_cookie_max_age

python/python3/tornado/test/web_test.py:388–391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

386 )
387
388 def test_set_cookie_max_age(self):
389 response = self.fetch("/set_max_age")
390 headers = response.headers.get_list("Set-Cookie")
391 self.assertEqual(sorted(headers), ["foo=bar; Max-Age=10; Path=/"])
392
393 def test_set_cookie_expires_days(self):
394 response = self.fetch("/set_expires_days")

Callers

nothing calls this directly

Calls 2

get_listMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected