aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2015-08-01 11:38:33 +1200
committerAldo Cortesi <aldo@corte.si>2015-08-01 11:38:33 +1200
commitc31b6c3c36f681d1dbc3ce11922741b7e1e41837 (patch)
treef63a0f56534d16437aaa5464cf585cac82f90985 /test/tutils.py
parentcdc84f52d213cb2b2b2a06a17378ebe757908865 (diff)
parent4f38c6b90e239d192863dee271e267b498c72206 (diff)
downloadmitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.tar.gz
mitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.tar.bz2
mitmproxy-c31b6c3c36f681d1dbc3ce11922741b7e1e41837.zip
Merge pull request #698 from Kriechi/http2-wip
[WIP] Protocol Refactoring for HTTP/2
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tutils.py b/test/tutils.py
index aeaeb0de..7c7d1db3 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -96,13 +96,13 @@ def treq(content="content", scheme="http", host="address", port=22):
host,
port,
"/path",
- (1,
- 1),
+ (1, 1),
headers,
content,
None,
None,
- None)
+ None,
+ )
return req
@@ -127,14 +127,14 @@ def tresp(content="message"):
headers["header_response"] = ["svalue"]
resp = http.HTTPResponse(
- (1,
- 1),
+ (1, 1),
200,
"OK",
headers,
content,
time(),
- time())
+ time(),
+ )
return resp