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