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

Method testUppercaseMethods

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected