#NEWLINE# def test_not_equal_operator_generates_the_right_negated_expression_for_the_exact_year_lookup_when_comparing_to_another_field( self ) : #NEWLINE# #INDENT# sut = self . system_under_test #NEWLINE# expected = ( ~ Q ( field__year = F ( 'field2' ) ) ) #NEWLINE# actual = ( sut . year != self . field ) #NEWLINE# self . assertEqual ( actual , expected )