aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-03 14:51:32 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-03 14:51:32 +1300
commit2cb7429d38243d95664791d3edd7c4894efd6ee9 (patch)
treee0f0e43515cb1b15c5a5de403814c54f33c62b09 /test/test_proxy.py
parent7924f0797114dffb6224febc0a533dba8c500c40 (diff)
downloadmitmproxy-2cb7429d38243d95664791d3edd7c4894efd6ee9.tar.gz
mitmproxy-2cb7429d38243d95664791d3edd7c4894efd6ee9.tar.bz2
mitmproxy-2cb7429d38243d95664791d3edd7c4894efd6ee9.zip
Change "connection" to the less confusing "client_conn" throughout.
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 eaf73ee1..5a057485 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")