def METHOD_NAME():
    event = Mock()
    with patch("salt.utils.event.get_master_event", autospec=True) as get_master:
        get_master.return_value.fire_event = event
        with patch.dict(script.__salt__, {"event.send": event}):
            yield event