From 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 15 Feb 2016 14:58:46 +0100 Subject: move mitmproxy --- test/test_examples.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 test/test_examples.py (limited to 'test/test_examples.py') diff --git a/test/test_examples.py b/test/test_examples.py deleted file mode 100644 index bb7c596b..00000000 --- a/test/test_examples.py +++ /dev/null @@ -1,30 +0,0 @@ -import glob -from libmproxy import utils, script -from libmproxy.proxy import config -from . import tservers - - -def test_load_scripts(): - example_dir = utils.Data("libmproxy").path("../examples") - scripts = glob.glob("%s/*.py" % example_dir) - - tmaster = tservers.TestMaster(config.ProxyConfig()) - - for f in scripts: - if "har_extractor" in f: - continue - if "flowwriter" in f: - f += " -" - if "iframe_injector" in f: - f += " foo" # one argument required - if "filt" in f: - f += " ~a" - if "modify_response_body" in f: - f += " foo bar" # two arguments required - try: - s = script.Script(f, script.ScriptContext(tmaster)) # Loads the script file. - except Exception as v: - if "ImportError" not in str(v): - raise - else: - s.unload() -- cgit v1.2.3