def test_remove_assistive_error(self):
        mock_ret = MagicMock(return_value={'retcode': 1})
        with patch.dict(assistive.__salt__, {'cmd.run_all': mock_ret}):
            self.assertRaises(CommandExecutionError,
                              assistive.remove,
                              'foo')
Test removing an assitive bundle.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_assistive_test.py/AssistiveTestCase.test_remove_assistive_error