

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

dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py KeyTest.test_list_json_out/VarMisuse@109/257 `expect`->`self`