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

Method get

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

Source from the content-addressed store, hash-verified

1843class ExceptionHandlerTest(SimpleHandlerTestCase):
1844 class Handler(RequestHandler):
1845 def get(self):
1846 exc = self.get_argument("exc")
1847 if exc == "http":
1848 raise HTTPError(410, "no longer here")
1849 elif exc == "zero":
1850 1 / 0
1851 elif exc == "permission":
1852 raise PermissionError("not allowed")
1853
1854 def write_error(self, status_code, **kwargs):
1855 if "exc_info" in kwargs:

Callers

nothing calls this directly

Calls 3

HTTPErrorClass · 0.90
PermissionErrorClass · 0.85
get_argumentMethod · 0.80

Tested by

no test coverage detected