def test_list_acc(self):
        data = self.run_key('-l acc')
        if self.master_opts['transport'] in ('zeromq', 'tcp'):
            self.assertEqual(
                data,
                ['Accepted Keys:', 'minion', 'sub_minion']
            )
        elif self.master_opts['transport'] == 'raet':
            self.assertEqual(
                data,
                [
                    'minions:',
                    '    - master',
                    '    - minion',
                    '    - sub_minion'
                ]
            )
test salt-key -l
dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py/KeyTest.test_list_acc