(path, message)
| 325 | app = web.application(urls, locals()) |
| 326 | |
| 327 | def assert_notfound(path, message): |
| 328 | response = app.request(path) |
| 329 | self.assertEqual(response.status.split()[0], "404") |
| 330 | self.assertEqual(response.data, message) |
| 331 | |
| 332 | assert_notfound("/a/foo", b"not found 1") |
| 333 | assert_notfound("/b/foo", b"not found") |