aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 10:39:14 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 12:40:40 +0200
commita837230320378d629ba9f25960b1dfd25c892ad9 (patch)
treeeca444b3965abb294c6304ec41de2fbc307e240f /test/http/http1/test_protocol.py
parent199f2a44fed6b5f1c6fada6c96b981dfab5fded2 (diff)
downloadmitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.tar.gz
mitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.tar.bz2
mitmproxy-a837230320378d629ba9f25960b1dfd25c892ad9.zip
move code from mitmproxy to netlib
Diffstat (limited to 'test/http/http1/test_protocol.py')
-rw-r--r--test/http/http1/test_protocol.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/http/http1/test_protocol.py b/test/http/http1/test_protocol.py
index b196b7a3..05bad1af 100644
--- a/test/http/http1/test_protocol.py
+++ b/test/http/http1/test_protocol.py
@@ -75,16 +75,6 @@ def test_connection_close():
assert HTTP1Protocol.connection_close((1, 1), h)
-def test_get_header_tokens():
- h = odict.ODictCaseless()
- assert http.get_header_tokens(h, "foo") == []
- h["foo"] = ["bar"]
- assert http.get_header_tokens(h, "foo") == ["bar"]
- h["foo"] = ["bar, voing"]
- assert http.get_header_tokens(h, "foo") == ["bar", "voing"]
- h["foo"] = ["bar, voing", "oink"]
- assert http.get_header_tokens(h, "foo") == ["bar", "voing", "oink"]
-
def test_read_http_body_request():
h = odict.ODictCaseless()