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

Method cookie_headers

python/python3/tornado/test/web_test.py:2751–2754  ·  view source on GitHub ↗
(self, token=None)

Source from the content-addressed store, hash-verified

2749 return native_str(response.body)
2750
2751 def cookie_headers(self, token=None):
2752 if token is None:
2753 token = self.xsrf_token
2754 return {"Cookie": "_xsrf=" + token}
2755
2756 def test_xsrf_fail_no_token(self):
2757 with ExpectLog(gen_log, ".*'_xsrf' argument missing"):

Calls

no outgoing calls

Tested by

no test coverage detected