def test_repeat_get_url_interval(url_prefix):
    session = RateLimitRequests(url_interval=1)
    t = datetime.now()
    resp1 = session.get(url_prefix + '/cookies')
    session.get(url_prefix + '/cookies/set?a=b')
    resp2 = session.get(url_prefix + '/cookies')
    assert timedelta(seconds=1) < datetime.now() - t
    assert resp1 == resp2
    assert resp1.json()['cookies'] == resp2.json()['cookies']
    time.sleep(1)
    resp3 = session.get(url_prefix + '/cookies')
    assert resp1 != resp3
    assert resp1.json()['cookies'] != resp3.json()['cookies']
dataset/ETHPy150Open spaceboats/busbus/tests/test_util_rate_limit_requests.py/test_repeat_get_url_interval/swapped operands of `<`