aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-05 15:05:44 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-05 15:05:44 +0200
commitf2570c773aa18e4ac236b1cf7f43acfb4ca080dd (patch)
tree10ed3ad13060e33864a8cd00c54317340d07425c /test/test_examples.py
parenta7a3b5703adff7de12fb479a90ea2628465a4486 (diff)
downloadmitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.tar.gz
mitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.tar.bz2
mitmproxy-f2570c773aa18e4ac236b1cf7f43acfb4ca080dd.zip
iframe injector example: use inline script
Diffstat (limited to 'test/test_examples.py')
-rw-r--r--test/test_examples.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index d18b5862..d557080e 100644
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -12,6 +12,8 @@ def test_load_scripts():
tmaster = tservers.TestMaster(config.ProxyConfig())
for f in scripts:
+ if "iframe_injector" in f:
+ f += " foo" # one argument required
if "modify_response_body" in f:
f += " foo bar" # two arguments required
script.Script(f, tmaster) # Loads the script file. \ No newline at end of file