diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-10-26 10:50:32 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-10-26 10:50:32 +1300 |
commit | fc1fc80469dca11ff0241c4b263e4b39e5506ddd (patch) | |
tree | 80432368738828a096561a0a676e82fe46f0148d /test/test_pathoc.py | |
parent | c00ae41486de06192865f8539da0f00985a16a90 (diff) | |
download | mitmproxy-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.py | 5 |
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, |