cherrypy.test.test_wsgi_unix_socket module

class cherrypy.test.test_wsgi_unix_socket.USocketHTTPConnection(path)[source]

Bases: http.client.HTTPConnection

HTTPConnection over a unix socket.

connect()[source]

Override the connect method and assign a unix socket as a transport.

class cherrypy.test.test_wsgi_unix_socket.WSGI_UnixSocket_Test(methodName='runTest')[source]

Bases: cherrypy.test.helper.CPWebCase

Test basic behavior on a cherrypy wsgi server listening on a unix socket.

It exercises the config option server.socket_file.

HTTP_CONN = <cherrypy.test.test_wsgi_unix_socket.USocketHTTPConnection object>
pytestmark = [Mark(name='skipif', args=("sys.platform == 'win32'",), kwargs={})]
static setup_server()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_internal_error()[source]
test_not_found()[source]
test_simple_request()[source]
cherrypy.test.test_wsgi_unix_socket.usocket_path()[source]