#NEWLINE# def test_fix_null( self ) : #NEWLINE# #INDENT# sq = SelectQuery ( Blog ) . where ( ( Blog . user == None ) ) #NEWLINE# self . assertWhere ( sq , '("blog"."user_id" IS ?)' , [ None ] ) #NEWLINE# sq = SelectQuery ( Blog ) . where ( ( Blog . user != None ) ) #NEWLINE# self . assertWhere ( sq , '("blog"."user_id" IS NOT ?)' , [ None ] ) #NEWLINE# sq = SelectQuery ( Blog ) . where ( ( ~ ( Blog . user == None ) ) ) #NEWLINE# self . assertWhere ( sq , 'NOT ("blog"."user_id" IS ?)' , [ None ] )