#NEWLINE# def test_convert_equals_signs( ) : #NEWLINE# #INDENT# transformations = ( standard_transformations + ( convert_equals_signs , ) ) #NEWLINE# x = Symbol ( 'x' ) #NEWLINE# y = Symbol ( 'y' ) #NEWLINE# assert ( parse_expr ( '1*2=x' , transformations = transformations ) == Eq ( 2 , x ) ) #NEWLINE# assert ( parse_expr ( 'y = x' , transformations = transformations ) == Eq ( y , x ) ) #NEWLINE# assert ( parse_expr ( '(2*y = x) = False' , transformations = x ) == Eq ( Eq ( ( 2 * y ) , x ) , False ) )