#NEWLINE# def test_ncycles( self ) : #NEWLINE# #INDENT# it = iters . ncycles ( [ 10 , 11 ] , 2 ) #NEWLINE# self . assertEqual ( 10 , next ( it ) ) #NEWLINE# self . assertEqual ( 11 , next ( it ) ) #NEWLINE# self . assertEqual ( 10 , next ( it ) ) #NEWLINE# self . assertEqual ( 11 , next ( it ) ) #NEWLINE# self . assertRaises ( StopIteration , next , it )