summaryrefslogtreecommitdiff
path: root/kronos/tests/test_cli.py
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-02-07 14:20:47 -0500
committerMike Crute <mcrute@gmail.com>2010-02-07 14:20:47 -0500
commit011c9ce431a50fdac1a74e58cadbb63975e98628 (patch)
tree2028dc9064b1f6bd0455ccc8849c24687d47672e /kronos/tests/test_cli.py
parentf4bcc526fd335c699231513748d01277b4542fd2 (diff)
downloadkronos-011c9ce431a50fdac1a74e58cadbb63975e98628.tar.bz2
kronos-011c9ce431a50fdac1a74e58cadbb63975e98628.tar.xz
kronos-011c9ce431a50fdac1a74e58cadbb63975e98628.zip
Adding test for invalid action.
Diffstat (limited to 'kronos/tests/test_cli.py')
-rw-r--r--kronos/tests/test_cli.py6
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)