def METHOD_NAME(name, value, expected):
    v1 = value[0]
    v2 = value[1]
    e1 = expected[0]
    e2 = expected[1]
    if abs(v1-e1) > eps or abs(v2-e2):
        raise '%s returned (%f, %f), expected (%f, %f)'%\
              (name, v1,v2, e1,e2)