aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-10-26 10:50:32 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-10-26 10:50:32 +1300
commitfc1fc80469dca11ff0241c4b263e4b39e5506ddd (patch)
tree80432368738828a096561a0a676e82fe46f0148d /test/test_pathoc.py
parentc00ae41486de06192865f8539da0f00985a16a90 (diff)
downloadmitmproxy-fc1fc80469dca11ff0241c4b263e4b39e5506ddd.tar.gz
mitmproxy-fc1fc80469dca11ff0241c4b263e4b39e5506ddd.tar.bz2
mitmproxy-fc1fc80469dca11ff0241c4b263e4b39e5506ddd.zip
Allow nesting of pathod response specs in pathoc specs
This opens the door to really neat, repeatable, client-side driven fuzzing, especially of proxies.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r--test/test_pathoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index 2542b622..23b42994 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -59,8 +59,11 @@ class _TestDaemon:
c.settimeout(timeout)
s = cStringIO.StringIO()
for i in requests:
+ r = language.parse_requests(i)[0]
+ if explain:
+ r = r.freeze({})
c.print_request(
- language.parse_requests(i)[0],
+ r,
showreq = showreq,
showresp = showresp,
explain = explain,