'Test fallbacks for __typeof with single value virtual field'

def testVirtualFieldSingle(self):

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