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

Method get

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

Source from the content-addressed store, hash-verified

3175class FinishExceptionTest(SimpleHandlerTestCase):
3176 class Handler(RequestHandler):
3177 def get(self):
3178 self.set_status(401)
3179 self.set_header("WWW-Authenticate", 'Basic realm="something"')
3180 if self.get_argument("finish_value", ""):
3181 raise Finish("authentication required")
3182 else:
3183 self.write("authentication required")
3184 raise Finish()
3185
3186 def test_finish_exception(self):
3187 for u in ["/", "/?finish_value=1"]:

Callers

nothing calls this directly

Calls 5

FinishClass · 0.90
set_statusMethod · 0.80
set_headerMethod · 0.80
get_argumentMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected