cherrypy.test.test_tools module

Test the various means of instantiating and invoking tools.

class cherrypy.test.test_tools.SessionAuthTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_login_screen_returns_bytes()[source]

login_screen must return bytes even if unicode parameters are passed. Issue 1132 revealed that login_screen would return unicode if the username and password were unicode.

class cherrypy.test.test_tools.TestHooks[source]

Bases: object

test_priorities()[source]

Hooks should sort by priority order.

class cherrypy.test.test_tools.ToolTests(methodName='runTest')[source]

Bases: cherrypy.test.helper.CPWebCase

static setup_server()[source]
testBareHooks()[source]
testCombinedTools()[source]
testDecorator()[source]
testEndRequestOnDrop()[source]
testGuaranteedHooks()[source]
testHandlerWrapperTool()[source]
testHookErrors()[source]
testToolWithConfig()[source]
testWarnToolOn()[source]