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

Method assert_notfound

tests/test_application.py:327–330  ·  view source on GitHub ↗
(path, message)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected