summaryrefslogtreecommitdiff
path: root/tests/test_test.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-02-10 15:08:55 -0800
committerDavid Lord <davidism@gmail.com>2020-02-10 15:08:55 -0800
commitd14c209a39f42c8626e4e60c75dbba6e73f5f4ec (patch)
treec84cd5947689577100dd01ba81c6912d1db754e2 /tests/test_test.py
parentb7554db8d59ea7dd228328557164e97b3fd8038b (diff)
downloadwerkzeug-test-multi-value-header.tar.gz
test client accepts multiple values for a headertest-multi-value-header
Co-authored-by: Aaron Schuman <aaron@aschuman.net>
Diffstat (limited to 'tests/test_test.py')
-rw-r--r--tests/test_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_test.py b/tests/test_test.py
index 26a9b47d..445a0bbc 100644
--- a/tests/test_test.py
+++ b/tests/test_test.py
@@ -20,6 +20,7 @@ from werkzeug._compat import implements_iterator
from werkzeug._compat import iteritems
from werkzeug._compat import to_bytes
from werkzeug.datastructures import FileStorage
+from werkzeug.datastructures import Headers
from werkzeug.datastructures import MultiDict
from werkzeug.formparser import parse_form_data
from werkzeug.test import Client
@@ -224,6 +225,15 @@ def test_environ_builder_headers_content_type():
assert "CONTENT_TYPE" not in env
+def test_envrion_builder_multiple_headers():
+ h = Headers()
+ h.add("FOO", "bar")
+ h.add("FOO", "baz")
+ b = EnvironBuilder(headers=h)
+ env = b.get_environ()
+ assert env["HTTP_FOO"] == "bar, baz"
+
+
def test_environ_builder_paths():
b = EnvironBuilder(path="/foo", base_url="http://example.com/")
strict_eq(b.base_url, "http://example.com/")