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

Method test_routing

tests/test_application.py:128–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 )
127
128 def test_routing(self):
129 urls = ("/foo", "foo")
130
131 class foo:
132 def GET(self):
133 return "foo"
134
135 app = web.application(urls, {"foo": foo})
136
137 self.assertEqual(app.request("/foo").data, b"foo")
138
139 def test_subdirs(self):
140 urls = ("/(.*)", "blog")

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected