

def TMap(fn, test):
    'Checks that a modified version of the argument passes the given test.\n\n  '
    return WithDesc(('Result of %s must be %s' % (Parens(fn), Parens(test))))((lambda val: test(fn(val))))

dataset/ETHPy150Open ganeti/ganeti/lib/ht.py TMap/original