#NEWLINE# def test_f_mutation_with_or( self ) : #NEWLINE# #INDENT# "Make sure OR doesn't mutate operands." #NEWLINE# f1 = F ( fielda = 'tag' , fieldb = 'boat' ) #NEWLINE# f2 = F ( fieldc = 'car' ) #NEWLINE# ( f1 | f2 ) #NEWLINE# eq_ ( sorted ( f1 . filters [ 0 ] [ 'and' ] ) , sorted ( [ ( 'fielda' , 'tag' ) , ( 'fieldb' , 'boat' ) ] ) ) #NEWLINE# eq_ ( f2 . filters , [ ( 'fieldc' , 'car' ) ] )