#NEWLINE# def test_lazy_custom_rules( self ) : #NEWLINE# #INDENT# 'Make sure LazyReferences manually shoved into custom rules are\n        resolved.\n\n        Incidentally test passing full-on Expressions as custom rules and\n        having a custom rule as the default one.\n\n        ' #NEWLINE# grammar = Grammar ( "\n            four = '4'\n            five = '5'" , forty_five = Sequence ( LazyReference ( 'four' ) , LazyReference ( 'five' ) , name = 'forty_five' ) ) . default ( 'forty_five' ) #NEWLINE# s = '45' #NEWLINE# eq_ ( grammar . parse ( s ) , Node ( 'forty_five' , s , 0 , 2 , children = [ Node ( 'four' , s , 0 , 1 ) , Node ( 'five' , s , 1 , 2 ) ] ) )