#NEWLINE# def test_flatten( self ) : #NEWLINE# #INDENT# l = [ [ 1 , 1 , 1 ] , [ 2 , 2 , 2 ] , [ [ 3 , 3 ] , [ 4 , 4 ] ] ] #NEWLINE# expect = [ 1 , 1 , 1 , 2 , 2 , 2 , [ 3 , 3 ] , [ 4 , 4 ] ] #NEWLINE# result = seq ( l ) . flatten ( ) #NEWLINE# self . assertIteratorEqual ( expect , result ) #NEWLINE# self . assert_type ( result )