diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-02-06 00:53:39 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-02-06 00:53:39 +0100 |
commit | cb397ec788519069aeb785f4a635f30a897288b5 (patch) | |
tree | e397f47cfd8edfbab344e3f38ef579d4e70e82f1 /test/test_flow.py | |
parent | 80683e77bcb16b361e7eeaf6ad49048564d7acab (diff) | |
download | mitmproxy-cb397ec788519069aeb785f4a635f30a897288b5.tar.gz mitmproxy-cb397ec788519069aeb785f4a635f30a897288b5.tar.bz2 mitmproxy-cb397ec788519069aeb785f4a635f30a897288b5.zip |
fix bugs, expose timestamp information to console ui
Diffstat (limited to 'test/test_flow.py')
-rw-r--r-- | test/test_flow.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_flow.py b/test/test_flow.py index f28697c1..006dfe51 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -13,8 +13,7 @@ def test_app_registry(): ar.add("foo", "domain", 80) r = tutils.treq() - r.host = "domain" - r.port = 80 + r.set_url("http://domain:80/") assert ar.get(r) r.port = 81 @@ -587,7 +586,7 @@ class TestFlowMaster: req = tutils.treq() fm.handle_clientconnect(req.flow.client_conn) assert fm.scripts[0].ns["log"][-1] == "clientconnect" - sc = proxy.ServerConnection((req.host, req.port), None) + sc = proxy.ServerConnection((req.get_host(), req.get_port()), None) sc.reply = controller.DummyReply() fm.handle_serverconnection(sc) assert fm.scripts[0].ns["log"][-1] == "serverconnect" |