summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-07-20 00:45:15 +0000
committerianb <devnull@localhost>2006-07-20 00:45:15 +0000
commit7b7d82f12e795e5d088c53b35faa03212771a12b (patch)
tree9b4b65f5d3cb73750c0894a4f9159daf607a4437 /tests
parentd6cbc631afd21b23ffd171b4d50e3ff221d8923f (diff)
downloadpaste-0.9.5.tar.gz
Removed errordocument.empty_error, since it never actually worked in a useful way; changed the news to 0.9.5 (since that's what the next release will be)0.9.5
Diffstat (limited to 'tests')
-rw-r--r--tests/test_errordocument.py14
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