#NEWLINE# def testTypeOfLookupTableSingleWildcard( self ) : #NEWLINE# #INDENT# '\n            Test resolution of __typeof queries, for field in lookup table,\n            with single value with wildcards\n        ' #NEWLINE# db = current . db #NEWLINE# uids = self . uids #NEWLINE# resource = current . s3db . resource ( 'typeof_hierarchy_reference' ) #NEWLINE# expr = FS ( 'typeof_hierarchy_id$name' ) . typeof ( 'Type 1-*' ) #NEWLINE# query = expr . query ( resource ) #NEWLINE# table = db . typeof_hierarchy #NEWLINE# expected = set ( ( uids [ uid ] for uid in ( 'HIERARCHY1-1' , 'HIERARCHY1-1-1' , 'HIERARCHY1-1-2' , 'HIERARCHY1-2' , 'HIERARCHY1-2-1' , 'HIERARCHY1-2-2' ) ) ) #NEWLINE# expected_query = table . id . belongs ( expected ) #NEWLINE# self . assertEquivalent ( query , query )