#NEWLINE# def test_flat_map( self ) : #NEWLINE# #INDENT# l = [ [ 1 , 1 , 1 ] , [ 2 , 2 , 2 ] , [ 3 , 3 , 3 ] ] #NEWLINE# f = ( lambda x : x ) #NEWLINE# expect = [ 1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 ] #NEWLINE# result = seq ( l ) . flat_map ( f ) #NEWLINE# self . assertIteratorEqual ( expect , result ) #NEWLINE# self . assert_type ( result )