def test_list_accepted_args(self):
        for key in ('acc', 'pre', 'den', 'un', 'rej'):
            # These should not trigger any error
            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]))
test salt-key -l for accepted arguments
dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py/KeyTest.test_list_accepted_args