<s> from combi . _python_toolbox import cute_testing <EOL> from combi import * <EOL> def test_chain_spaces ( ) : <EOL> chain_space = ChainSpace ( ( range ( <NUM_LIT:3> ) , '<STR_LIT>' , range ( <NUM_LIT> , <NUM_LIT> , - <NUM_LIT:1> ) ) ) <EOL> assert tuple ( chain_space ) == ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> , '<STR_LIT:m>' , '<STR_LIT:e>' , '<STR_LIT:o>' , '<STR_LIT:w>' , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:20> ) <EOL> assert len ( chain_space ) == chain_space . length == <NUM_LIT:10> <EOL> assert bool ( chain_space ) is True <EOL> for i , item in enumerate ( chain_space ) : <EOL> assert chain_space [ i ] == item <EOL> assert chain_space . index ( item ) == i <EOL> assert chain_space == chain_space <EOL> assert <NUM_LIT:0> in chain_space <EOL> assert '<STR_LIT:m>' in chain_space <EOL> assert [ ] not in chain_space <EOL> with cute_testing . RaiseAssertor ( ValueError ) : chain_space . index ( '<STR_LIT>' ) <EOL> with cute_testing . RaiseAssertor ( IndexError ) : chain_space [ - <NUM_LIT:11> ] <EOL> with cute_testing . RaiseAssertor ( IndexError ) : chain_space [ - <NUM_LIT> ] <EOL> with cute_testing . RaiseAssertor ( IndexError ) : chain_space [ <NUM_LIT:11> ] <EOL> with cute_testing . RaiseAssertor ( IndexError ) : chain_space [ <NUM_LIT> ] <EOL> assert chain_space [ - <NUM_LIT:1> ] == <NUM_LIT:20> <EOL> assert chain_space [ - <NUM_LIT:2> ] == <NUM_LIT> <EOL> assert chain_space [ - <NUM_LIT:10> ] == <NUM_LIT:0> <EOL> assert not ChainSpace ( ( ) ) </s>
