def test_polynomial():
    assert limit((x + 1)**1000/((x + 1)**1000 + 1), x, oo) == 1
    assert limit((x + 1)**1000/((x + 1)**1000 + 1), x, -oo) == 1
dataset/ETHPy150Open sympy/sympy/sympy/series/tests/test_limits.py/test_polynomial/original