(host, expected_result)
| 188 | app = web.subdomain_application(urls, locals()) |
| 189 | |
| 190 | def test(host, expected_result): |
| 191 | result = app.request("/", host=host) |
| 192 | self.assertEqual(result.data, expected_result) |
| 193 | |
| 194 | test("a.example.com", b"a") |
| 195 | test("b.example.com", b"b") |