diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2016-09-30 21:45:13 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2016-09-30 22:00:36 -0600 |
| commit | ab2f84a04e3919bf6f00eea3c6f889c8dc9afce5 (patch) | |
| tree | e690ae52f1aec16e67951d4f5b9473a17729907b /tests | |
| parent | e5ee979c971bb06c1e40483c71cb616197d23900 (diff) | |
| download | webob-ab2f84a04e3919bf6f00eea3c6f889c8dc9afce5.tar.gz | |
Add test for resp.content_type = 'someval'
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_response.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_response.py b/tests/test_response.py index 9d09019..bfa3e7d 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -1268,3 +1268,8 @@ def test_explicit_charset(): res = Response(charset='UTF-16') assert res.content_type == 'text/html' assert res.charset == 'UTF-16' + +def test_set_content_type(): + res = Response(content_type='application/json') + res.content_type = 'application/foo' + assert res.content_type == 'application/foo' |
