# cherrypy.test.test_request_obj module

Basic tests for the cherrypy.Request object.

class cherrypy.test.test_request_obj.RequestObjectTests(methodName='runTest')

  Bases: `CPWebCase`

  _classSetupFailed = False
  _class_cleanups = []
  static setup_server()
  testAbsoluteURIPathInfo()
  testEmptyThreadlocals()
  testErrorHandling()
  testExpect()
  testHeaderElements()
  testParamErrors()
  testParams()
  testRelativeURIPathInfo()
  test_CONNECT_method()
  test_CONNECT_method_invalid_authority()
  test_basic_HTTPMethods()
  test_dangerous_host()

    Dangerous characters like newlines should be elided.

    Ref #1974.

  test_encoded_headers()
  test_header_presence()
  test_per_request_uuid4()
  test_repeated_headers()
  test_scheme()