diff options
Diffstat (limited to 'tests/test_request.py')
| -rw-r--r-- | tests/test_request.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_request.py b/tests/test_request.py index 808840b..87e8b81 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -3265,9 +3265,9 @@ class TestRequest_functional(object): def test_call_WSGI_app(self): req = self._blankOne('/') def wsgi_app(environ, start_response): - start_response('200 OK', [('Content-type', 'text/plain')]) + start_response('200 OK', [('Content-Type', 'text/plain')]) return [b'Hi!'] - assert req.call_application(wsgi_app) == ('200 OK', [('Content-type', 'text/plain')], [b'Hi!']) + assert req.call_application(wsgi_app) == ('200 OK', [('Content-Type', 'text/plain')], [b'Hi!']) res = req.get_response(wsgi_app) from webob.response import Response @@ -3275,13 +3275,13 @@ class TestRequest_functional(object): assert res.status == '200 OK' from webob.headers import ResponseHeaders assert isinstance(res.headers, ResponseHeaders) - assert list(res.headers.items()) == [('Content-type', 'text/plain')] + assert list(res.headers.items()) == [('Content-Type', 'text/plain; charset=UTF-8')] assert res.body == b'Hi!' def test_get_response_catch_exc_info_true(self): req = self._blankOne('/') def wsgi_app(environ, start_response): - start_response('200 OK', [('Content-type', 'text/plain')]) + start_response('200 OK', [('Content-Type', 'text/plain')]) return [b'Hi!'] res = req.get_response(wsgi_app, catch_exc_info=True) from webob.response import Response @@ -3289,7 +3289,7 @@ class TestRequest_functional(object): assert res.status == '200 OK' from webob.headers import ResponseHeaders assert isinstance(res.headers, ResponseHeaders) - assert list(res.headers.items()) == [('Content-type', 'text/plain')] + assert list(res.headers.items()) == [('Content-Type', 'text/plain; charset=UTF-8')] assert res.body == b'Hi!' def equal_req(self, req, inp): |
