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

Method get_app

python/python3/tornado/test/routing_test.py:246–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

244
245class WSGIContainerTestCase(AsyncHTTPTestCase):
246 def get_app(self):
247 wsgi_app = WSGIContainer(self.wsgi_app)
248
249 class Handler(RequestHandler):
250 def get(self, *args, **kwargs):
251 self.finish(self.reverse_url("tornado"))
252
253 return RuleRouter(
254 [
255 (
256 PathMatches("/tornado.*"),
257 Application([(r"/tornado/test", Handler, {}, "tornado")]),
258 ),
259 (PathMatches("/wsgi"), wsgi_app),
260 ]
261 )
262
263 def wsgi_app(self, environ, start_response):
264 start_response("200 OK", [])

Callers

nothing calls this directly

Calls 4

WSGIContainerClass · 0.90
RuleRouterClass · 0.90
PathMatchesClass · 0.90
ApplicationClass · 0.90

Tested by

no test coverage detected