diff options
Diffstat (limited to 'test/utils.py')
-rw-r--r-- | test/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utils.py b/test/utils.py index b63c48dc..b1dc46d4 100644 --- a/test/utils.py +++ b/test/utils.py @@ -2,7 +2,7 @@ from libmproxy import proxy, utils, filt, flow def treq(conn=None): if not conn: - conn = proxy.ClientConnection(("address", 22)) + conn = proxy.ClientConnect(("address", 22)) headers = utils.Headers() headers["header"] = ["qvalue"] return proxy.Request(conn, "host", 80, "http", "GET", "/path", headers, "content") @@ -17,6 +17,6 @@ def tresp(req=None): def tflow(): - bc = proxy.ClientConnection(("address", 22)) - return flow.Flow(bc) + r = treq() + return flow.Flow(r) |