def METHOD_NAME(self, ftype):
    assert_raises(OverflowError, ftype('inf').as_integer_ratio)
    assert_raises(OverflowError, ftype('-inf').as_integer_ratio)
    assert_raises(ValueError, ftype('nan').as_integer_ratio)