diff options
Diffstat (limited to 'test/test_examples.py')
-rw-r--r-- | test/test_examples.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_examples.py b/test/test_examples.py new file mode 100644 index 00000000..014b1d68 --- /dev/null +++ b/test/test_examples.py @@ -0,0 +1,12 @@ +from libmproxy import utils, script +import glob +from libmproxy.proxy import config +import tservers + +example_dir = utils.Data("libmproxy").path("../examples/") +scripts = glob.glob("%s*.py" % example_dir) + +tmaster = tservers.TestMaster(config.ProxyConfig()) + +for f in scripts: + script.Script(f, tmaster) # Loads the script file.
\ No newline at end of file |