'Test the realm entity can be set for a list of record IDs'

def testSetRealmEntityWithRecordIDList(self):

    s3db = current.s3db
    auth = current.auth
    settings = current.deployment_settings
    otable = s3db.org_organisation
    record = otable[self.org_id]
    tname = 'org_organisation'
    settings.auth.realm_entity = self.realm_entity
    assertEqual = self.assertEqual
    auth.set_realm_entity(otable, [self.org_id], force_update=True)
    assertEqual(self.owned_record, (tname, record.id))
    record = otable[self.org_id]
    assertEqual(record.realm_entity, 5)
