diff options
Diffstat (limited to 'kronos/tests/test_cli.py')
-rw-r--r-- | kronos/tests/test_cli.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kronos/tests/test_cli.py b/kronos/tests/test_cli.py index 54aef81..a826a7e 100644 --- a/kronos/tests/test_cli.py +++ b/kronos/tests/test_cli.py | |||
@@ -34,3 +34,9 @@ class TestParsingErrors(object): | |||
34 | def test_should_exit_if_not_enough_args(self): | 34 | def test_should_exit_if_not_enough_args(self): |
35 | ui = CommandLineUI([]) | 35 | ui = CommandLineUI([]) |
36 | assert_raises(SystemExit, ui.run) | 36 | assert_raises(SystemExit, ui.run) |
37 | |||
38 | def test_should_exit_if_invalid_controller(self): | ||
39 | args = ['kronos', 'ducks', 'my action@home', '#stuff', '#good'] | ||
40 | ui = CommandLineUI(args) | ||
41 | |||
42 | assert_raises(SystemExit, ui.run) | ||