#NEWLINE# def test_flatten( self ) : #NEWLINE# #INDENT# ref = [ 'foo' , 'bar' , '123' ] #NEWLINE# result = utils . flatten ( ref ) #NEWLINE# self . assertEquals ( ref , result ) #NEWLINE# result = utils . flatten ( [ 'foo' , [ 'bar' , '123' ] ] ) #NEWLINE# self . assertEquals ( ref , result ) #NEWLINE# result = utils . flatten ( [ [ 'foo' ] , [ 'bar' , '123' ] ] ) #NEWLINE# self . assertEquals ( ref , result )