aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-04 10:05:07 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-04 10:58:08 +1300
commit2ad4c5adf38e627fc4534548610235ce1c590c66 (patch)
treeea69fd85721f51cfe84baa08ff3e326fe15bab2c /test/test_proxy.py
parent2cb7429d38243d95664791d3edd7c4894efd6ee9 (diff)
downloadmitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.tar.gz
mitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.tar.bz2
mitmproxy-2ad4c5adf38e627fc4534548610235ce1c590c66.zip
Get rid of ReplayConnection - we now have only one ClientConnection class.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 5a057485..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.ClientConnection("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.ClientConnection("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.ClientConnection("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.ClientConnection("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")