#NEWLINE# def testTypeOfListReferenceMultiple( self ) : #NEWLINE# #INDENT# '\n            Test resolution of __typeof queries, for list:reference,\n            with multiple values\n        ' #NEWLINE# db = current . db #NEWLINE# uids = self . uids #NEWLINE# resource = current . s3db . resource ( 'typeof_hierarchy_reference' ) #NEWLINE# expr = FS ( 'typeof_hierarchy_multi_id' ) . typeof ( ( uids [ 'HIERARCHY1-2' ] , db [ 'HIERARCHY2-1' ] ) ) #NEWLINE# query = expr . query ( resource ) #NEWLINE# table = resource . table #NEWLINE# expected = set ( ( uids [ uid ] for uid in ( 'HIERARCHY1-2' , 'HIERARCHY1-2-1' , 'HIERARCHY1-2-2' , 'HIERARCHY2-1' , 'HIERARCHY2-1-1' , 'HIERARCHY2-1-2' ) ) ) #NEWLINE# found = self . inspect_multi_query ( query , field = table . typeof_hierarchy_multi_id , conjunction = db . _adapter . OR , op = db . _adapter . CONTAINS ) #NEWLINE# self . assertEqual ( found , expected )