(self)
| 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]) |
nothing calls this directly
no test coverage detected