From a15b6e7e8e08f6ab8e3299be33fea6aa6771acfd Mon Sep 17 00:00:00 2001 From: ianb Date: Fri, 1 Dec 2006 19:02:53 +0000 Subject: Expanded profile test a bit --- tests/test_profilemiddleware.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_profilemiddleware.py b/tests/test_profilemiddleware.py index 0ecbef0..944243d 100644 --- a/tests/test_profilemiddleware.py +++ b/tests/test_profilemiddleware.py @@ -2,7 +2,7 @@ from paste.fixture import * from paste.debug.profile import * def simple_app(environ, start_response): - start_response('200 OK', [('content-type', 'text/plain')]) + start_response('200 OK', [('content-type', 'text/html')]) return ['all ok'] def long_func(): @@ -12,7 +12,11 @@ def long_func(): def test_profile(): app = TestApp(ProfileMiddleware(simple_app, {})) - app.get('/') + res = app.get('/') + # The original app: + res.mustcontain('all ok') + # The profile information: + res.mustcontain('