aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
blob: fa57b7eb13c2d2bf439182965ea338fe024d3c87 (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.