

def test_list_yaml_out(self):
    '\n        test salt-key -L --yaml-out\n        '
    data = self.run_key('-L --out yaml')
    expect = []
    if (self.master_opts['transport'] in ('zeromq', 'tcp')):
        expect = ['minions:', '- minion', '- sub_minion', 'minions_denied: []', 'minions_pre: []', 'minions_rejected: []']
    elif (self.master_opts['transport'] == 'raet'):
        expect = ['accepted:', '- master', '- minion', '- sub_minion', 'pending: []', 'rejected: []']
    self.assertEqual(data, expect)

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