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
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)