MCPcopy Index your code
hub / github.com/webpy/webpy / test

Method test

tests/test_application.py:190–192  ·  view source on GitHub ↗
(host, expected_result)

Source from the content-addressed store, hash-verified

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")

Callers 1

validMethod · 0.80

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected