#NEWLINE# def test_negating_generates_the_right_expression_for_the_not_lookup( self ) : #NEWLINE# #INDENT# sut = self . system_under_test #NEWLINE# expected = ( ~ Q ( 'field' ) ) #NEWLINE# actual = ( ~ sut ) #NEWLINE# self . assertEqual ( actual , expected )