# cherrypy.test.test_tools module

Test the various means of instantiating and invoking tools.

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

  Bases: `TestCase`

  _classSetupFailed = False
  _class_cleanups = []
  test_login_screen_returns_bytes()

    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

  Bases: `object`

  test_priorities()

    Hooks should sort by priority order.

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

  Bases: `CPWebCase`

  _classSetupFailed = False
  _class_cleanups = []
  static setup_server()
  testBareHooks()
  testCombinedTools()
  testDecorator()
  testEndRequestOnDrop()
  testGuaranteedHooks()
  testHandlerWrapperTool()
  testHookErrors()
  testToolWithConfig()
  testWarnToolOn()