

def test_list_accepted_args(self):
    '\n        test salt-key -l for accepted arguments\n        '
    for key in ('acc', 'pre', 'den', 'un', 'rej'):
        data = self.run_key('-l {0}'.format(key), catch_stderr=True)
        self.assertNotIn('error:', '\n'.join(data[1]))
        data = self.run_key('-l foo-{0}'.format(key), catch_stderr=True)
        self.assertIn('error:', '\n'.join(data[1]))

dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py KeyTest.test_list_accepted_args/original