'Test fallbacks for __typeof with multi-value virtual field'

def testVirtualFieldMultiple(self):

    resource = current.s3db.resource('typeof_hierarchy')
    row = self.rows['HIERARCHY2']
    expr = FS('vmfield').typeof('test1')
    result = expr(resource, row, virtual=True)
    self.assertTrue(result)
    expr = FS('vmfield').typeof('other')
    result = expr(resource, row, virtual=True)
    self.assertFalse(result)
    expr = FS('vmfield').typeof(['test1', 'other'])
    result = expr(resource, row, virtual=True)
    self.assertTrue(result)
    expr = FS('vmfield').typeof(['other1', 'other2'])
    result = expr(resource, row, virtual=True)
    self.assertFalse(result)
