(self)
| 82 | self.assertEqual(app.request("/").data, b"c") |
| 83 | |
| 84 | def testUppercaseMethods(self): |
| 85 | urls = ("/", "hello") |
| 86 | app = web.application(urls, locals()) |
| 87 | |
| 88 | class hello: |
| 89 | def GET(self): |
| 90 | return "hello" |
| 91 | |
| 92 | def internal(self): |
| 93 | return "secret" |
| 94 | |
| 95 | response = app.request("/", method="internal") |
| 96 | self.assertEqual(response.status, "405 Method Not Allowed") |
| 97 | |
| 98 | def testRedirect(self): |
| 99 | # fmt: off |