Permalink
Browse files

Add some more key tests

  • Loading branch information...
1 parent 98027c3 commit 7530f39269f304ef36c09ba85033e4a07c931748 @thatch45 thatch45 committed Apr 21, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 tests/integration/shell/key.py
@@ -16,3 +16,23 @@ def test_list(self):
'\x1b[0;32mminion\x1b[0m',
'\x1b[1;34mRejected:\x1b[0m', '']
self.assertEqual(data, expect)
+
+ def test_list_acc(self):
+ '''
+ test salt-key -l
+ '''
+ data = self.run_key('-l acc')
+ self.assertEqual(
+ data,
+ ['\x1b[0;32mminion\x1b[0m', '']
+ )
+
+ def test_list_un(self):
+ '''
+ test salt-key -l
+ '''
+ data = self.run_key('-l un')
+ self.assertEqual(
+ data,
+ ['']
+ )

0 comments on commit 7530f39

Please sign in to comment.