aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console.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_console.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_console.py')
-rw-r--r--test/test_console.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_console.py b/test/test_console.py
index 5b1364a5..179b116d 100644
--- a/test/test_console.py
+++ b/test/test_console.py
@@ -10,7 +10,7 @@ class uState(libpry.AutoTree):
connect -> request -> response
"""
- bc = proxy.ClientConnection("address", 22)
+ bc = proxy.ClientConnection(("address", 22))
c = console.ConsoleState()
f = flow.Flow(bc)
c.add_browserconnect(f)
@@ -25,7 +25,7 @@ class uState(libpry.AutoTree):
"""
c = console.ConsoleState()
- bc = proxy.ClientConnection("address", 22)
+ bc = proxy.ClientConnection(("address", 22))
f = flow.Flow(bc)
c.add_browserconnect(f)
assert c.get_focus() == (f, 0)
@@ -33,7 +33,7 @@ class uState(libpry.AutoTree):
assert c.get_from_pos(1) == (None, None)
assert c.get_next(0) == (None, None)
- bc2 = proxy.ClientConnection("address", 22)
+ bc2 = proxy.ClientConnection(("address", 22))
f2 = flow.Flow(bc2)
c.add_browserconnect(f2)
assert c.get_focus() == (f, 1)
@@ -117,7 +117,7 @@ class uformat_flow(libpry.AutoTree):
assert ('method', '[edited] ') in console.format_flow(f, True)
assert ('method', '[edited] ') in console.format_flow(f, True, True)
- f.client_conn = flow.ReplayConnection()
+ f.client_conn = proxy.ClientConnection(None)
assert ('method', '[replay] ') in console.format_flow(f, True)
assert ('method', '[replay] ') in console.format_flow(f, True, True)