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

Method test_xsrf_success_header

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

Source from the content-addressed store, hash-verified

2831 self.assertEqual(response.code, 200)
2832
2833 def test_xsrf_success_header(self):
2834 response = self.fetch(
2835 "/",
2836 method="POST",
2837 body=b"",
2838 headers=dict(
2839 {"X-Xsrftoken": self.xsrf_token}, # type: ignore
2840 **self.cookie_headers()
2841 ),
2842 )
2843 self.assertEqual(response.code, 200)
2844
2845 def test_distinct_tokens(self):
2846 # Every request gets a distinct token.

Callers

nothing calls this directly

Calls 2

cookie_headersMethod · 0.95
fetchMethod · 0.45

Tested by

no test coverage detected