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

Method test_set_cookie_overwrite

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

Source from the content-addressed store, hash-verified

379 self.assertEqual(response.body, utf8(expected))
380
381 def test_set_cookie_overwrite(self):
382 response = self.fetch("/set_overwrite")
383 headers = response.headers.get_list("Set-Cookie")
384 self.assertEqual(
385 sorted(headers), ["a=e; Path=/", "c=d; Domain=example.com; Path=/"]
386 )
387
388 def test_set_cookie_max_age(self):
389 response = self.fetch("/set_max_age")

Callers

nothing calls this directly

Calls 2

get_listMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected