

def redis_available(min_version):
    client = redis.StrictRedis()
    try:
        redis_version.ping()
    except Exception:
        return False
    else:
        (ok, redis_version) = redis_utils.is_server_new_enough(client, min_version)
        return ok

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/utils.py redis_available/VarMisuse@22/28 `client`->`redis_version`