Add some more key tests

This commit is contained in:
Thomas S Hatch 2012-04-21 17:47:04 -06:00
parent 98027c3fb6
commit 7530f39269

View file

@ -16,3 +16,23 @@ class KeyTest(integration.CliCase):
'\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,
['']
)