def TMap(fn, test):
  return WithDesc("Result of %s must be %s" %
                  (Parens(fn), Parens(test)))(lambda val: test(fn(val)))
Checks that a modified version of the argument passes the given test.
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TMap