summaryrefslogtreecommitdiff
path: root/test/baseline/feat-option_py.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 23:40:02 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 23:40:02 -0600
commita125f24d29fd8275be7283a2edca9abc125703d7 (patch)
treeb649aeeef3b75be85cae8197467c5fb02066d486 /test/baseline/feat-option_py.test
parentcfd7ffb12645c198a5b15891654f6ad6a0e4db27 (diff)
downloadfork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.tar.gz
fork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.tar.bz2
fork-ledger-a125f24d29fd8275be7283a2edca9abc125703d7.zip
Allow --options to be added by the user in Python
Diffstat (limited to 'test/baseline/feat-option_py.test')
-rw-r--r--test/baseline/feat-option_py.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/baseline/feat-option_py.test b/test/baseline/feat-option_py.test
new file mode 100644
index 00000000..a67b27c3
--- /dev/null
+++ b/test/baseline/feat-option_py.test
@@ -0,0 +1,14 @@
+python
+ def option_pyfirst(context):
+ print "In --pyfirst (from %s)" % context
+
+ def option_pysecond(context, val):
+ print "In --pysecond=%s (from %s)" % (val, context)
+
+--pyfirst
+--pysecond Hey
+
+test reg
+In --pyfirst (from $sourcepath/test/baseline/feat-option_py.test)
+In --pysecond=Hey (from $sourcepath/test/baseline/feat-option_py.test)
+end test