#NEWLINE# def test_parse_one_child( self ) : #NEWLINE# #INDENT# data = self . loader . _parse ( ONE_CHILD ) #NEWLINE# self . assertEqual ( 1 , len ( data ) , data ) #NEWLINE# ( rules , children ) = data [ 0 ] #NEWLINE# self . assertEqual ( [ 'parent' ] , rules ) #NEWLINE# ( child_rules , child_children ) = children [ 0 ] #NEWLINE# self . assertEqual ( [ 'child' ] , child_rules ) #NEWLINE# self . assertEqual ( 0 , len ( child_children ) )