Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Num Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad Num ListLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad Num Call NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Num Call NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Num Call NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Num Call NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Num keyword NameLoad Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad TupleLoad Num Num Num decorator_list FunctionDef arguments args defaults body Expr Str FunctionDef arguments args defaults body Expr Yield Num Expr Yield Num Expr Yield Num Raise NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Lambda arguments args defaults Call NameLoad Call NameLoad Assign NameStore Call NameLoad Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Num Expr Call NameLoad NameLoad decorator_list
N/A N/A Testing module for `python_toolbox.cute_iter_tools.shorten`. N/A nose.tools python_toolbox nifty_collections python_toolbox cute_iter_tools python_toolbox.cute_iter_tools shorten N/A infinity N/A float inf test N/A N/A N/A N/A N/A Test basic workings of `shorten`. N/A my_range N/A 0 1 2 3 4 N/A short_iterator N/A shorten my_range 3 N/A N/A N/A N/A short_iterator __iter__ short_iterator N/A N/A N/A list N/A shorten my_range 0 N/A N/A N/A N/A list N/A shorten my_range 1 N/A range 1 N/A N/A N/A list N/A shorten my_range 2 N/A range 2 N/A N/A N/A list N/A shorten my_range 3 N/A range 3 N/A N/A N/A list N/A shorten my_range 4 N/A range 4 N/A N/A N/A list N/A shorten my_range infinity my_range N/A N/A N/A list N/A shorten N/A iter my_range infinity my_range N/A test_lazy_tuple N/A N/A N/A N/A N/A my_range N/A 0 1 2 3 4 N/A lazy_tuple N/A shorten my_range 3 lazy_tuple True N/A N/A isinstance lazy_tuple N/A nifty_collections LazyTuple N/A N/A N/A lazy_tuple collected_data N/A N/A N/A tuple lazy_tuple N/A 0 1 2 N/A test_dont_pull_extra_item N/A N/A N/A N/A N/A Test that `shorten` doesn't pull an extra member from the iterable. generator N/A N/A N/A N/A N/A N/A 1 N/A N/A 2 N/A N/A 3 N/A Exception N/A N/A N/A N/A N/A nose tools assert_raises Exception N/A N/A N/A N/A N/A list N/A generator N/A iterator_1 N/A shorten N/A generator 4 N/A N/A N/A N/A nose tools assert_raises Exception N/A N/A N/A N/A N/A list iterator_1 N/A iterator_2 N/A shorten N/A generator infinity N/A N/A N/A N/A nose tools assert_raises Exception N/A N/A N/A N/A N/A list iterator_2 N/A iterator_3 N/A shorten N/A generator 3 N/A N/A list iterator_3 N/A