(self)
| 244 | |
| 245 | class 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", []) |
nothing calls this directly
no test coverage detected