#NEWLINE# def test_or_filters( self ) : #NEWLINE# #INDENT# data = DatabaseQuery ( 'DocField' ) . execute ( filters = { #NEWLINE# #INDENT# 'parent' : 'DocType' , #NEWLINE# #UNINDENT# } , fields = [ 'fieldname' , 'fieldtype' ] , or_filters = [ { #NEWLINE# #INDENT# 'fieldtype' : 'Table' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'fieldtype' : 'Select' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertTrue ( ( { #NEWLINE# #INDENT# 'fieldtype' : 'Table' , #NEWLINE# 'fieldname' : 'fields' , #NEWLINE# #UNINDENT# } in data ) ) #NEWLINE# self . assertTrue ( ( { #NEWLINE# #INDENT# 'fieldtype' : 'Select' , #NEWLINE# 'fieldname' : 'document_type' , #NEWLINE# #UNINDENT# } in data ) ) #NEWLINE# self . assertFalse ( ( { #NEWLINE# #INDENT# 'fieldtype' : 'Check' , #NEWLINE# 'fieldname' : 'issingle' , #NEWLINE# #UNINDENT# } in data ) )