aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/test_semantics.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-08 15:16:25 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-08 15:16:25 +0200
commitfc86bbd03e7806bf5d3dc0d226b607192642c810 (patch)
treee115ffbef1e097962c70b2fe6941d80574a79692 /test/http/test_semantics.py
parent50bf92ccce16efc4a76640577663383323bd3b86 (diff)
downloadmitmproxy-fc86bbd03e7806bf5d3dc0d226b607192642c810.tar.gz
mitmproxy-fc86bbd03e7806bf5d3dc0d226b607192642c810.tar.bz2
mitmproxy-fc86bbd03e7806bf5d3dc0d226b607192642c810.zip
let Headers inherit from object
fixes mitmproxy/mitmproxy#753
Diffstat (limited to 'test/http/test_semantics.py')
-rw-r--r--test/http/test_semantics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http/test_semantics.py b/test/http/test_semantics.py
index 22fe992c..6dcbbe07 100644
--- a/test/http/test_semantics.py
+++ b/test/http/test_semantics.py
@@ -547,7 +547,7 @@ class TestHeaders(object):
def test_get_all(self):
headers = self._2host()
assert headers.get_all("host") == ["example.com", "example.org"]
- assert headers.get_all("accept", 42) is 42
+ assert headers.get_all("accept") == []
def test_set_all(self):
headers = semantics.Headers(Host="example.com")