def METHOD_NAME(self, signal_name, *args, **kwargs):
    """Context manager helper used for generating a mock signal function and registering with flask"""
    func = self.signal_function(signal_name)
    signal = self.get_signal(signal_name)
    signal.connect(func, self.app)
    try:
        signal.send(*args, **kwargs)
        return func
    finally:
        # DEV: There is a bug in `blinker.Signal.disconnect` :(
        signal.receivers.clear()