diff options
author | Christophe CHAUVET <christophe.chauvet@gmail.com> | 2013-08-28 08:15:59 +0200 |
---|---|---|
committer | Christophe CHAUVET <christophe.chauvet@gmail.com> | 2013-08-28 08:15:59 +0200 |
commit | e07f0bba1825e440a1ebe1cea03182225bcb8e08 (patch) | |
tree | aa09a77560f2be483d6ce1db837cac618cf33907 /cliff/tests/test_app.py | |
parent | 4010a5315aace3c3a33abf09580432b13b3efd07 (diff) | |
download | cliff-e07f0bba1825e440a1ebe1cea03182225bcb8e08.tar.gz |
Add test to check if return code is 2 on unknown command
Diffstat (limited to 'cliff/tests/test_app.py')
-rw-r--r-- | cliff/tests/test_app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cliff/tests/test_app.py b/cliff/tests/test_app.py index 5f13007..a879ccd 100644 --- a/cliff/tests/test_app.py +++ b/cliff/tests/test_app.py @@ -374,3 +374,8 @@ def test_error_encoding_sys(): app.stderr.write(u_data) actual = stderr.getvalue() assert data == actual + + +def test_unknown_cmd(): + app, command = make_app() + assert app.run(['hell']) == 2 |