diff options
author | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-03 23:30:03 +0100 |
---|---|---|
committer | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-03 23:30:03 +0100 |
commit | 5bf6482bd08d4eadda36b9b6f67fbf34016c603d (patch) | |
tree | d2056001b4f059e4efa06d31884cf33a8b156a17 /test/test_proxy.py | |
parent | 2f813fa74818bcaaca8b0182eda004ea91a0d504 (diff) | |
parent | 2ad4c5adf38e627fc4534548610235ce1c590c66 (diff) | |
download | mitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.tar.gz mitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.tar.bz2 mitmproxy-5bf6482bd08d4eadda36b9b6f67fbf34016c603d.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index eaf73ee1..340b6697 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -221,7 +221,7 @@ class uRequest(libpry.AutoTree): def test_simple(self): h = utils.Headers() h["test"] = ["test"] - c = proxy.BrowserConnection("addr", 2222) + c = proxy.ClientConnection(("addr", 2222)) r = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content") u = r.url() assert r.set_url(u) @@ -233,7 +233,7 @@ class uRequest(libpry.AutoTree): def test_getset_state(self): h = utils.Headers() h["test"] = ["test"] - c = proxy.BrowserConnection("addr", 2222) + c = proxy.ClientConnection(("addr", 2222)) r = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content") state = r.get_state() assert proxy.Request.from_state(state) == r @@ -243,7 +243,7 @@ class uResponse(libpry.AutoTree): def test_simple(self): h = utils.Headers() h["test"] = ["test"] - c = proxy.BrowserConnection("addr", 2222) + c = proxy.ClientConnection(("addr", 2222)) req = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content") resp = proxy.Response(req, 200, "HTTP", "msg", h.copy(), "content") assert resp.short() @@ -252,7 +252,7 @@ class uResponse(libpry.AutoTree): def test_getset_state(self): h = utils.Headers() h["test"] = ["test"] - c = proxy.BrowserConnection("addr", 2222) + c = proxy.ClientConnection(("addr", 2222)) r = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content") req = proxy.Request(c, "host", 22, "https", "GET", "/", h, "content") resp = proxy.Response(req, 200, "HTTP", "msg", h.copy(), "content") |