aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
blob: 014b1d68f6b4681d80d1e2fb4714bd47b615b4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.