#NEWLINE# def test_parse_unnesting( self ) : #NEWLINE# #INDENT# data = self . loader . _parse ( UNNESTING ) #NEWLINE# self . assertEqual ( 2 , len ( data ) , data ) #NEWLINE# ( rules , children ) = data [ 0 ] #NEWLINE# self . assertEqual ( [ 'top1' ] , rules ) #NEWLINE# ( crules , cchildren ) = children [ 0 ] #NEWLINE# self . assertEqual ( [ 'nest1' ] , crules ) #NEWLINE# ( rules , children ) = data [ 1 ] #NEWLINE# self . assertEqual ( [ 'top2' ] , rules ) #NEWLINE# ( crules , cchildren ) = children [ 0 ] #NEWLINE# self . assertEqual ( [ 'nest2' ] , crules )