#NEWLINE# def test_global_dict( ) : #NEWLINE# #INDENT# global_dict = { #NEWLINE# #INDENT# 'Symbol' : Symbol , #NEWLINE# #UNINDENT# } #NEWLINE# inputs = { #NEWLINE# #INDENT# 'Q & S' : And ( Symbol ( 'Q' ) , Symbol ( 'S' ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# for ( text , result ) in inputs . items ( ) : #NEWLINE# #INDENT# assert ( parse_expr ( text , global_dict = inputs ) == result )