aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugins/a.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-08-03 11:06:29 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-08-03 11:06:29 +1200
commit62088a666156f70b65d331bc002a946e58c76013 (patch)
treeb9d6c9c8ccaa546dcfe9eabd193d7cbf21b69411 /test/plugins/a.py
parenta817db5bd6b55cfb86de24cf7bc8aa8bb400653d (diff)
downloadmitmproxy-62088a666156f70b65d331bc002a946e58c76013.tar.gz
mitmproxy-62088a666156f70b65d331bc002a946e58c76013.tar.bz2
mitmproxy-62088a666156f70b65d331bc002a946e58c76013.zip
Start stubbing out a much more powerful script architecture.
Diffstat (limited to 'test/plugins/a.py')
-rw-r--r--test/plugins/a.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/plugins/a.py b/test/plugins/a.py
new file mode 100644
index 00000000..0a21b619
--- /dev/null
+++ b/test/plugins/a.py
@@ -0,0 +1,9 @@
+
+var = 0
+def here(ctx):
+ global var
+ var += 1
+ return var
+
+def errargs():
+ pass