From a17a53269d23d0bde74c340c9df4b1983b70144b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 15 May 2014 14:37:05 +0200 Subject: fix #253 --- test/test_examples.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test_examples.py (limited to 'test') 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 -- cgit v1.2.3