class documentation
class KleinResourceTests(SynchronousTestCase): (source)
Undocumented
Method | assert |
Assert that the given deferred has fired with the given result. |
Method | assert |
Assert that the given deferred has not fired with a result. |
Method | set |
Undocumented |
Method | test_add |
Undocumented |
Method | test_async |
Undocumented |
Method | test_branch |
Undocumented |
Method | test_branch |
Undocumented |
Method | test_branch |
Undocumented |
Method | test_cancelled |
Undocumented |
Method | test_cancelled |
Undocumented |
Method | test_cancels |
Undocumented |
Method | test_children |
Undocumented |
Method | test_child |
Undocumented |
Method | test_correct |
Undocumented |
Method | test_decodes |
server_name, path_info, and script_name are decoded as UTF-8 before being handed to werkzeug. |
Method | test_deferred |
Undocumented |
Method | test_deferred |
Undocumented |
Method | test_element |
Undocumented |
Method | test |
Undocumented |
Method | test_error |
Renderables returned by handle_errors are rendered. |
Method | test_error |
Resources returned by Klein.handle_errors are rendered |
Method | test_explicit |
Undocumented |
Method | test |
Undocumented |
Method | test_failed |
If decoding of one of the URL parts (in this case PATH_INFO) fails, the error is logged and 400 returned. |
Method | test_generic |
Undocumented |
Method | test_handler |
Undocumented |
Method | test_leaf |
Undocumented |
Method | test_method |
Undocumented |
Method | test_method |
Undocumented |
Method | test_no |
Undocumented |
Method | test_not |
Undocumented |
Method | test_not |
Undocumented |
Method | test_producer |
Test that Klein will correctly handle producing Resource s. |
Method | test_render |
Undocumented |
Method | test_render |
Undocumented |
Method | test_request |
Undocumented |
Method | test_request |
Undocumented |
Method | test_route |
Undocumented |
Method | test_simple |
Undocumented |
Method | test_simple |
Undocumented |
Method | test_static |
Undocumented |
Method | test_static |
Undocumented |
Method | test_strict |
Undocumented |
Method | test_subrouted |
Undocumented |
Method | test_type |
Undocumented |
Method | test |
Undocumented |
Method | test_url |
URLDecodeError.__repr__ formats properly. |
Method | test_ |
Undocumented |
Method | test_ |
Undocumented |
Method | test_ |
Undocumented |
Instance Variable | app |
Undocumented |
Instance Variable | kr |
Undocumented |
If decoding of one of the URL parts (in this case PATH_INFO) fails, the error is logged and 400 returned.
Test that Klein will correctly handle producing Resource
s.
Producing Resources close the connection by themselves, sometimes after Klein has 'finished'. This test lets Klein finish its handling of the request before doing more producing.