diff options
Diffstat (limited to 'tests/test_errordocument.py')
-rw-r--r-- | tests/test_errordocument.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/test_errordocument.py b/tests/test_errordocument.py index 51135b6..502b44d 100644 --- a/tests/test_errordocument.py +++ b/tests/test_errordocument.py @@ -14,7 +14,7 @@ I also need to find out how to test that another response was correctly requested by the middleware. """ import os -from paste.errordocument import forward, custom_forward, empty_error +from paste.errordocument import forward, custom_forward from paste.fixture import * def simple_app(environ, start_response): @@ -31,15 +31,3 @@ def test_ok(): assert res.header('content-type') == 'text/plain' assert res.full_status == '200 OK' assert 'requested page returned' in res - -def test_empty(): - app = TestApp(empty_error(simple_app)) - res = app.get('/') - assert res.header('content-type') == 'text/plain' - assert res.full_status == '200 OK' - assert 'requested page returned' in res - app = TestApp(empty_error(not_found_app)) - res = app.get('/', status=404) - assert 'requested page returned' not in res - assert res.body == '' - assert res.status == 404 |