def test_list_raw_out(self):
        data = self.run_key('-L --out raw')
        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':
            expected_txt = (
                '{\'accepted\': '
                '[\'master\', \'minion\', \'sub_minion\'], '
                '\'rejected\': [], \'pending\': []}'
            )
            expect = [expected_txt]
        self.assertEqual(data, expect)
test salt-key -L --raw-out
dataset/ETHPy150Open saltstack/salt/tests/integration/shell/key.py/KeyTest.test_list_raw_out