cherrypy.test.test_request_obj module

Basic tests for the cherrypy.Request object.

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

Bases: CPWebCase

static setup_server()[source]
testAbsoluteURIPathInfo()[source]
testEmptyThreadlocals()[source]
testErrorHandling()[source]
testExpect()[source]
testHeaderElements()[source]
testParamErrors()[source]
testParams()[source]
testRelativeURIPathInfo()[source]
test_CONNECT_method()[source]
test_CONNECT_method_invalid_authority()[source]
test_basic_HTTPMethods()[source]
test_dangerous_host()[source]

Dangerous characters like newlines should be elided.

Ref #1974.

test_encoded_headers()[source]
test_header_presence()[source]
test_per_request_uuid4()[source]
test_repeated_headers()[source]
test_scheme()[source]