def test_getPollingDelayIt_delayMaxIsMAX_POLLING_INTERVAL():
    delay_it = secretary.get_polling_delay_it()
    delay_prev = 0
    delay = delay_it.next()
    while delay_prev < delay:
        delay_prev = delay
        delay = delay_it.next()

    assert delay is secretary.MAX_POLLING_INTERVAL
def test_getPollingDelayIt_delayMaxIsMAX_POLLING_INTERVAL():
    delay_it = secretary.get_polling_delay_it()
    delay_prev = 0
    delay = delay_it.next()
    while delay_prev < delay:
        delay_prev = delay
        delay = delay_it.next()

    assert (delay is secretary.MAX_POLLING_INTERVAL)
def test_getPollingDelayIt_delayIsRaising():
    delay_it = secretary.get_polling_delay_it()
    delay_a = delay_it.next()
    delay_b = delay_it.next()
    assert delay_a < delay_b
def test_getPollingDelayIt_delayIsRaising():
    delay_it = secretary.get_polling_delay_it()
    delay_a = delay_it.next()
    delay_b = delay_it.next()
    assert (delay_a < delay_b)