'Verify detection of fixed set lookup fields'

def testLookup(self):

    assertTrue = self.assertTrue
    assertFalse = self.assertFalse
    resource = current.s3db.resource('test_ftypes')
    rfield = S3ResourceField(resource, 'name')
    assertFalse(rfield.is_lookup)
    rfield = S3ResourceField(resource, 'category1')
    assertTrue(rfield.is_lookup)
    rfield = S3ResourceField(resource, 'category2')
    assertTrue(rfield.is_lookup)
    rfield = S3ResourceField(resource, 'discrete')
    assertFalse(rfield.is_lookup)
    rfield = S3ResourceField(resource, 'value')
    assertFalse(rfield.is_lookup)
