summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-09-30 21:45:13 -0600
committerBert JW Regeer <bertjw@regeer.org>2016-09-30 22:00:36 -0600
commitab2f84a04e3919bf6f00eea3c6f889c8dc9afce5 (patch)
treee690ae52f1aec16e67951d4f5b9473a17729907b /tests
parente5ee979c971bb06c1e40483c71cb616197d23900 (diff)
downloadwebob-ab2f84a04e3919bf6f00eea3c6f889c8dc9afce5.tar.gz
Add test for resp.content_type = 'someval'
Diffstat (limited to 'tests')
-rw-r--r--tests/test_response.py5
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'