diff options
author | cce <devnull@localhost> | 2005-12-23 21:36:37 +0000 |
---|---|---|
committer | cce <devnull@localhost> | 2005-12-23 21:36:37 +0000 |
commit | 370ba732f785cc211e850664ecfea6a62fea30b4 (patch) | |
tree | bbc6b3281820448e64ada2ae5c45e39a0170e15a /tests/test_exceptions/test_httpexceptions.py | |
parent | db53428a989dca0526d5f6a4bad5c91424424ea1 (diff) | |
download | paste-370ba732f785cc211e850664ecfea6a62fea30b4.tar.gz |
- got rid of unnecessary trailing spaces in httpexceptions
- made error messages us \r\n rather than just \n in httpexceptions
to comply with various browsers
- added tests to check FileApp
- added support for handling 100 Continue in httpserver
- fixingup dumpenviron in wsgilib to dump message body
- misc changes to fileapp (mostly documentation)
Diffstat (limited to 'tests/test_exceptions/test_httpexceptions.py')
-rw-r--r-- | tests/test_exceptions/test_httpexceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_exceptions/test_httpexceptions.py b/tests/test_exceptions/test_httpexceptions.py index 1c24a4a..60095ce 100644 --- a/tests/test_exceptions/test_httpexceptions.py +++ b/tests/test_exceptions/test_httpexceptions.py @@ -38,14 +38,14 @@ def test_template(): e.template = 'A %(ping)s and <b>%(pong)s</b> message.' assert str(e).startswith("500 Internal Server Error") assert e.plain({'ping': 'fun', 'pong': 'happy'}) == ( - '500 Internal Server Error\n' - 'A fun and happy message.\n') + '500 Internal Server Error\r\n' + 'A fun and happy message.\r\n') assert '<p>A fun and <b>happy</b> message.</p>' in \ e.html({'ping': 'fun', 'pong': 'happy'}) def test_iterator_application(): - """ - This tests to see that an iterator's exceptions are caught by + """ + This tests to see that an iterator's exceptions are caught by HTTPExceptionHandler """ def basic_found(environ, start_response): |