Exemplo n.º 1
0
def test_iterable_returns_original_item_when_iterable(item):
    """
    Assert that :func:`~decorstate.iterable` will always return the original item if it is an iterable.
    """
    it = decorstate.iterable(item)
    assert it is item
Exemplo n.º 2
0
def test_iterable_always_returns_iterable(item):
    """
    Assert that :func:`~decorstate.iterable` will always return an iterable instance regardless of the input.
    """
    it = decorstate.iterable(item)
    assert isinstance(it, collections.Iterable)