Home | Trees | Indices | Help |
|
---|
|
Extensions to unittest for web frameworks.
Use the WebCase.getPage method to request a page from your HTTP server.If you have control over your server process, you can handle errors in the server-side of the HTTP conversation a bit better. You must run both the client (your WebCase tests) and the server in the same process (but in separate threads, obviously).
When an error occurs in the framework, call server_error. It will print the traceback to stdout, and keep any assertions you have from running (the assumption is that, if the server errors, the page output will not be of further significance to your tests).
|
|||
TerseTestResult | |||
TerseTestRunner A test runner class that displays results in textual form. |
|||
ReloadingTestLoader | |||
WebCase | |||
ServerError |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
methods_with_bodies =
|
|||
ignored_exceptions =
|
|||
ignore_all = False
|
|
Server debug hook. Return True if exception handled, False if ignored. You probably want to wrap this, so you can still handle an error using your framework when it's ignored. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Fri Mar 14 19:19:43 2008 | http://epydoc.sourceforge.net |