CherryPy / cherrypy / test /

Full commit
"""Test WSGI servers and gateways, such as mod_python.


Put the following four lines somewhere in your Apache2 .conf:

PythonImport cherrypy.test.test_noserver
SetHandler python-program
PythonHandler wsgiref.modpython_gateway::handler
PythonOption application cherrypy._cpwsgi::wsgiApp


import cherrypy
from cherrypy import _cpwsgi

class HelloWorld:
    def index(self):
        return "Hello world!" = True
    wsgi_asp = index

cherrypy.root = HelloWorld()
cherrypy.root.test = HelloWorld()

cherrypy.config.update({"server.environment": "production"})
cherrypy.server.start(initOnly = True)