MCPcopy
hub / github.com/tornadoweb/tornado / test_set_cookie

Method test_set_cookie

tornado/test/web_test.py:399–404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

397 ]
398
399 def test_set_cookie(self):
400 response = self.fetch("/set")
401 self.assertEqual(
402 sorted(response.headers.get_list("Set-Cookie")),
403 ["bytes=zxcv; Path=/", "str=asdf; Path=/", "unicode=qwer; Path=/"],
404 )
405
406 def test_get_cookie(self):
407 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