Add test to check if return code is 2 on unknown command

This commit is contained in:
Christophe CHAUVET
2013-08-28 08:15:59 +02:00
parent 4010a5315a
commit e07f0bba18

View File

@@ -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