#NEWLINE# def test_consume( self ) : #NEWLINE# #INDENT# r = iters . range ( 10 ) #NEWLINE# self . assertEqual ( 10 , len ( list ( r ) ) ) #NEWLINE# itr = iter ( r ) #NEWLINE# iters . consume ( self ) #NEWLINE# self . assertEqual ( 0 , len ( list ( itr ) ) )