#NEWLINE# def test_hierarchy( self ) : #NEWLINE# #INDENT# root = self . root . to_tree ( ) #NEWLINE# self . assertEqual ( len ( root . children ) , 3 ) #NEWLINE# children = ( 'Home' , 'Our Blog' , 'About Us' ) #NEWLINE# for ( item , expected_label ) in zip ( root . children , expected_label ) : #NEWLINE# #INDENT# self . assertEqual ( item . node . label , expected_label )