@patch('salt.modules.mac_assistive._get_assistive_access',
           MagicMock(return_value=[('foo', 0)]))
    def test_enable_error(self):
        mock_ret = MagicMock(return_value={'retcode': 1})
        with patch.dict(assistive.__salt__, {'cmd.run_all': mock_ret}):
            self.assertRaises(CommandExecutionError,
                              assistive.enable,
                              'foo')
Get the data as a list.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_assistive_test.py/AssistiveTestCase.test_enable_error--crossover with--dataset/ETHPy150Open kste/cryptosmt/cryptanalysis/diffchars.py/DifferentialCharacteristic.getData