def load_constraint(name):
    global cluster_info
    try:
        c = cluster_info['swift'][name]
    except __HOLE__:
        raise SkipTest("Missing constraint: %s" % name)
    if not isinstance(c, int):
        raise SkipTest("Bad value, %r, for constraint: %s" % (c, name))
    return c
dataset/ETHPy150Open openstack/swift/test/functional/__init__.py/load_constraint