def METHOD_NAME(self, ftype):
    R = fractions.Fraction
    assert_equal(R(0, 1), R(*ftype(0.0).as_integer_ratio()))
    assert_equal(R(5, 2), R(*ftype(2.5).as_integer_ratio()))
    assert_equal(R(1, 2), R(*ftype(0.5).as_integer_ratio()))
    assert_equal(R(-2100, 1), R(*ftype(-2100.0).as_integer_ratio()))