def METHOD_NAME(name, value, expected):
    mant = value[0]
    exp  = value[1]
    emant = expected[0]
    eexp  = expected[1]
    if abs(mant-emant) > eps or exp != eexp:
        raise '%s returned (%f, %f), expected (%f, %f)'%\
              (name, mant, exp, emant,eexp)