From 4539e2afab6dc2dbcb2b9704fb3c8c5b86d50e47 Mon Sep 17 00:00:00 2001 From: ianb Date: Fri, 1 Dec 2006 02:37:22 +0000 Subject: Fixed errordocument header test --- tests/test_errordocument.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_errordocument.py') diff --git a/tests/test_errordocument.py b/tests/test_errordocument.py index f448ffc..a3da3b8 100644 --- a/tests/test_errordocument.py +++ b/tests/test_errordocument.py @@ -73,8 +73,8 @@ def auth_docs_app(environ, start_response): return simple_app(environ, start_response) def test_auth_docs_app(): - app = forward(auth_docs_app, codes={401: '/auth_doc'}) - app = TestApp(auth_docs_app) + wsgi_app = forward(auth_docs_app, codes={401: '/auth_doc'}) + app = TestApp(wsgi_app) res = app.get('/auth_doc') assert res.header('content-type') == 'text/html' res = app.get('/auth', status=401) -- cgit v1.2.1