testapp


Attributes

a html_page_template

'\n<html>\n<head>\n  <title>Test Application</title>\n</head>\n<body>\n<h1>Test Application: Working!</h1>\n\n<table border="1">\n%(environ)s\n</table>\n\n<p>\nNote: to see an error report, append <code>?error=true</code>\nto the URL\n</p>\n\n</body>\n</html>\n'

a html_row_template

'\n<tr>\n <td><b>%(key)s</b></td>\n <td><tt>%(value_literal)s</b></td>\n</tr>\n'

a text_page_template

'%(environ)s'

a text_row_template

'%(key)s: %(value_repr)s\n'

Functions

f make_literal(value) ...

f make_test_application(global_conf, text=False, lint=False) ...

A test WSGI application, that prints out all the environmental variables, and if you add ?error=t to the URL it will deliberately throw an exception.

Classes

C TestApplication(...) ...

A test WSGI application, that prints out all the environmental variables, and if you add ?error=t to the URL it will deliberately throw an exception.

This class contains 2 members.

See the source for more information.