<reponame>dnguyen0304/downloadbot.common
# -*- coding: utf-8 -*-

from nose.tools import assert_equal

from .. import wait_strategies


def test_fixed_wait_time():

    wait_time = 1
    wait_strategy = wait_strategies.Fixed(wait_time=wait_time)
    attempt = None
    output = wait_strategy.compute_wait_time(attempt=attempt)
    assert_equal(output, wait_time)

# -*- coding: utf-8 -*-

from nose.tools import assert_equal

from .. import wait_strategies


def test_fixed_wait_time():

    wait_time = 1
    wait_strategy = wait_strategies.Fixed(wait_time=wait_time)
    attempt = None
    output = wait_strategy.compute_wait_time(attempt=attempt)
    assert_equal(output, wait_time)
# -*- coding: utf-8 -*-