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

Method test_set_cookie

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

Source from the content-addressed store, hash-verified

330 ]
331
332 def test_set_cookie(self):
333 response = self.fetch("/set")
334 self.assertEqual(
335 sorted(response.headers.get_list("Set-Cookie")),
336 ["bytes=zxcv; Path=/", "str=asdf; Path=/", "unicode=qwer; Path=/"],
337 )
338
339 def test_get_cookie(self):
340 response = self.fetch("/get", headers={"Cookie": "foo=bar"})

Callers

nothing calls this directly

Calls 2

get_listMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected