diff options
Diffstat (limited to 'kronos/tests/test_cli.py')
-rw-r--r-- | kronos/tests/test_cli.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kronos/tests/test_cli.py b/kronos/tests/test_cli.py index c3b8e4d..54aef81 100644 --- a/kronos/tests/test_cli.py +++ b/kronos/tests/test_cli.py | |||
@@ -8,7 +8,7 @@ Test Suite for Command Line UI | |||
8 | """ | 8 | """ |
9 | 9 | ||
10 | 10 | ||
11 | from nose.tools import assert_equals | 11 | from nose.tools import assert_equals, assert_raises |
12 | from kronos.cli import CommandLineUI | 12 | from kronos.cli import CommandLineUI |
13 | from kronos.model import Activity | 13 | from kronos.model import Activity |
14 | 14 | ||
@@ -27,3 +27,10 @@ class TestWhenParsingArgs(object): | |||
27 | assert isinstance(self.ui.activity, Activity) | 27 | assert isinstance(self.ui.activity, Activity) |
28 | assert_equals(self.ui.activity.activity, 'my action') | 28 | assert_equals(self.ui.activity.activity, 'my action') |
29 | assert_equals(self.ui.activity.category, 'home') | 29 | assert_equals(self.ui.activity.category, 'home') |
30 | |||
31 | |||
32 | class TestParsingErrors(object): | ||
33 | |||
34 | def test_should_exit_if_not_enough_args(self): | ||
35 | ui = CommandLineUI([]) | ||
36 | assert_raises(SystemExit, ui.run) | ||