MCPcopy Index your code
hub / github.com/cherrypy/cherrypy / test_5_Error_paths

Method test_5_Error_paths

cherrypy/test/test_session.py:539–550  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

537 assert self.body == b'MemcachedSession'
538
539 def test_5_Error_paths(self):
540 self.getPage('/unknown/page')
541 self.assertErrorPage(
542 404, "The path '/unknown/page' was not found.")
543
544 # Note: this path is *not* the same as above. The above
545 # takes a normal route through the session code; this one
546 # skips the session code's before_handler and only calls
547 # before_finalize (save) and on_end (close). So the session
548 # code has to survive calling save/close without init.
549 self.getPage('/restricted', self.cookies, method='POST')
550 self.assertErrorPage(405, response_codes[405][1])

Callers

nothing calls this directly

Calls 2

getPageMethod · 0.80
assertErrorPageMethod · 0.80

Tested by

no test coverage detected