def METHOD_NAME(monkeypatch):
    def break_things(s, k, d, v):
        raise Exception("Redis connection failure")
    monkeypatch.setattr("mockredis.MockRedis.hset", break_things)
    # Check heartbeat publish exception doesn't pass up through to caller.
    # It will print out an error in the log, though.
    proxy_for(1, 2)
    assert True