diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-02 19:11:28 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-02 19:11:28 -0700 |
commit | 9ade8ac377b90f36445aeec1de01b650bbad2283 (patch) | |
tree | 78dede898fec07147302ce188a67f7ce09485a8c /tests/pyscript/foo4.py | |
parent | ad634b2e7f68392727246f796647b92d67172011 (diff) | |
parent | e8d952574743c00e2116d24044220cbaa95cfb38 (diff) | |
download | cmd2-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.py | 8 |
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) |