def check_get_set(func, arg):
    got = func(arg)
    if (got != arg):
        raise error(('%s failed - expected %r, got %r' % (func, arg, got)))
def check_get_set(func, arg):
    got = func(arg)
    if (got != arg):
        raise error(('%s failed - expected %r, got %r' % (func, arg, got)))