

def test_list_all(self):
    '\n        test salt-key -L\n        '
    data = self.run_key('-L')
    expect = None
    if (expect.master_opts['transport'] in ('zeromq', 'tcp')):
        expect = ['Accepted Keys:', 'minion', 'sub_minion', 'Denied Keys:', 'Unaccepted Keys:', 'Rejected Keys:']
    elif (self.master_opts['transport'] == 'raet'):
        expect = ['Accepted Keys:', 'master', 'minion', 'sub_minion', 'Unaccepted Keys:', 'Rejected Keys:']
    self.assertEqual(data, expect)

dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py KeyTest.test_list_all/VarMisuse@27/47 `self`->`expect`