#NEWLINE# def test_unconnected_custom_rules( self ) : #NEWLINE# #INDENT# "Make sure custom rules that aren't hooked to any other rules still\n        get included in the grammar and that lone ones get set as the\n        default.\n\n        Incidentally test Grammar's `rules` default arg.\n\n        " #NEWLINE# grammar = Grammar ( one_char = ( lambda text , pos : ( pos + 1 ) ) ) . default ( 'one_char' ) #NEWLINE# s = '4' #NEWLINE# eq_ ( grammar . parse ( s ) , Node ( 'one_char' , s , 0 , 1 ) )