def test_isolate():
    assert isolate(1) == (1, 1)
    assert isolate(2/S(1)) == (S(1)/2, S(1)/2)

    assert isolate(sqrt(2)) == (1, 2)
    assert isolate(-sqrt(2)) == (-2, -1)

    assert isolate(sqrt(2), eps=S(1)/100) == (S(24)/17, S(17)/12)
    assert isolate(-sqrt(2), eps=S(1)/100) == (-S(17)/12, -S(24)/17)

    raises(NotImplementedError, lambda: isolate(I))
dataset/ETHPy150Open sympy/sympy/sympy/polys/tests/test_numberfields.py/test_isolate/swapped operands of `/`