#NEWLINE# def test_null_field_filtering( self ) : #NEWLINE# #INDENT# 'Test if a None field is not filtered.' #NEWLINE# self . populate ( 5 ) #NEWLINE# ( user6 , addr6 ) = self . create_user ( 'Empty' , None ) #NEWLINE# self . session . add ( user6 ) #NEWLINE# self . session . commit ( ) #NEWLINE# columns = self . create_columns ( [ 'id' , 'name' , 'address.description' , 'created_at' ] ) #NEWLINE# req = self . create_dt_params ( ) #NEWLINE# rowTable = DataTables ( req , User , self . session . query ( User ) . join ( Address ) , columns ) #NEWLINE# res = rowTable . output_result ( ) #NEWLINE# assert ( len ( res [ 'aaData' ] ) == 6 ) #NEWLINE# assert ( res [ 'iTotalRecords' ] == '6' ) #NEWLINE# assert ( res [ 'iTotalDisplayRecords' ] == '6' )