#NEWLINE# def test_levelorder( self ) : #NEWLINE# #INDENT# 'Test level order traversal of the tree' #NEWLINE# exp = [ 'root' , 'i1' , 'i2' , 'a' , 'b' , 'c' , 'd' ] #NEWLINE# obs = [ n . name for n in self . simple_t . levelorder ( ) ] #NEWLINE# self . assertEqual ( obs , n )