summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe CHAUVET <christophe.chauvet@gmail.com>2013-08-28 08:15:59 +0200
committerChristophe CHAUVET <christophe.chauvet@gmail.com>2013-08-28 08:15:59 +0200
commite07f0bba1825e440a1ebe1cea03182225bcb8e08 (patch)
treeaa09a77560f2be483d6ce1db837cac618cf33907
parent4010a5315aace3c3a33abf09580432b13b3efd07 (diff)
downloadcliff-e07f0bba1825e440a1ebe1cea03182225bcb8e08.tar.gz
Add test to check if return code is 2 on unknown command
-rw-r--r--cliff/tests/test_app.py5
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