aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/http/test_headers.py')
-rw-r--r--test/http/test_headers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/http/test_headers.py b/test/http/test_headers.py
index f1af1feb..8bddc0b2 100644
--- a/test/http/test_headers.py
+++ b/test/http/test_headers.py
@@ -38,6 +38,9 @@ class TestHeaders(object):
assert headers["Host"] == "example.com"
assert headers["Accept"] == "text/plain"
+ with raises(ValueError):
+ Headers([[b"Host", u"not-bytes"]])
+
def test_getitem(self):
headers = Headers(Host="example.com")
assert headers["Host"] == "example.com"