aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-06 10:28:43 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-06 10:28:43 +1300
commitd0c2d9480cdf80c680937c97c790add902f718fa (patch)
treec4212c65cca8b755009e8bb6355f4270256f1605 /test/test_proxy.py
parent2ad4c5adf38e627fc4534548610235ce1c590c66 (diff)
downloadmitmproxy-d0c2d9480cdf80c680937c97c790add902f718fa.tar.gz
mitmproxy-d0c2d9480cdf80c680937c97c790add902f718fa.tar.bz2
mitmproxy-d0c2d9480cdf80c680937c97c790add902f718fa.zip
Also serialize ClientConnection and flow backups.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 340b6697..e343e693 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -236,7 +236,7 @@ class uRequest(libpry.AutoTree):
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
+ assert proxy.Request.from_state(c, state) == r
class uResponse(libpry.AutoTree):