summaryrefslogtreecommitdiff
path: root/tests/pyscript/foo4.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-02 19:11:28 -0700
committerkotfu <kotfu@kotfu.net>2018-05-02 19:11:28 -0700
commit9ade8ac377b90f36445aeec1de01b650bbad2283 (patch)
tree78dede898fec07147302ce188a67f7ce09485a8c /tests/pyscript/foo4.py
parentad634b2e7f68392727246f796647b92d67172011 (diff)
parente8d952574743c00e2116d24044220cbaa95cfb38 (diff)
downloadcmd2-git-9ade8ac377b90f36445aeec1de01b650bbad2283.tar.gz
Merge branch 'ply' of https://github.com/python-cmd2/cmd2 into ply
Diffstat (limited to 'tests/pyscript/foo4.py')
-rw-r--r--tests/pyscript/foo4.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pyscript/foo4.py b/tests/pyscript/foo4.py
new file mode 100644
index 00000000..88fd3ce8
--- /dev/null
+++ b/tests/pyscript/foo4.py
@@ -0,0 +1,8 @@
+result = app.foo('aaa', 'bbb', counter=3)
+out_text = 'Fail'
+if result:
+ data = result.data
+ if 'aaa' in data.variable and 'bbb' in data.variable and data.counter == 3:
+ out_text = 'Success'
+
+print(out_text)