'Test access to dynamic components'

def testComponentAccess(self):

    s3db = current.s3db
    assertTrue = self.assertTrue
    assertEqual = self.assertEqual
    resource = s3db.resource('org_organisation')
    assertTrue(('test_rating' in resource.components))
    component = resource.components['test_rating']
    assertEqual(component.tablename, self.TABLENAME)
    assertTrue(('organisation_id' in component.fields))
    assertTrue(('value' in component.fields))
