'Test Representation of reference, multiple values,
without linkto'

def testRepresentReferenceMultipleNoLinkto(self):

    s3db = current.s3db
    tablename = self.tablename
    fname = ('%s.location_id' % tablename)
    ftable = current.db[tablename]
    renderer = S3Represent(lookup='gis_location')
    ftable.location_id.represent = renderer
    resource = s3db.resource('org_organisation', id=self.org.id)
    data = resource.select(['id', 'test.location_id'], limit=None, represent=True)
    result = data['rows']
    self.assertEqual(renderer.queries, 1)
    self.assertTrue(len(result), 1)
    output = result[0]
    self.assertTrue((fname in output))
    names = output[fname].split(',    ')
    self.assertEqual(len(names), 2)
    self.assertTrue((self.locations[0].name in names))
    self.assertTrue((self.locations[1].name in names))
