(self)
| 3175 | class 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"]: |
nothing calls this directly
no test coverage detected