aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-29 11:39:53 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-30 13:53:17 +0200
commita5d9e1f44dbe0fc6fee174b1953806f9b148b5ad (patch)
tree0ee53b14c3513472ea1597144b228841454eef4f /test/tutils.py
parent89f22f735944989912a7a0394dd7e80d420cb0f3 (diff)
downloadmitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.tar.gz
mitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.tar.bz2
mitmproxy-a5d9e1f44dbe0fc6fee174b1953806f9b148b5ad.zip
move code to netlib and implement protocols
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