From fc86bbd03e7806bf5d3dc0d226b607192642c810 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 8 Sep 2015 15:16:25 +0200 Subject: let Headers inherit from object fixes mitmproxy/mitmproxy#753 --- test/http/test_semantics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/http/test_semantics.py') 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") -- cgit v1.2.3