'Test Representation of list:reference, single value,
with linkto + show_link=False'

def testRepresentListReferenceSingleLinktoOff(self):

    s3db = current.s3db
    tablename = self.tablename
    fname = ('%s.facility_type_id' % tablename)
    fac = self.facs[0]
    resource = s3db.resource(tablename, id=fac.id)
    renderer = S3Represent(lookup='org_facility_type', multiple=True, linkto=URL(c='org', f='facility_type', args=['[id]']))
    table = resource.table
    table.facility_type_id.represent = renderer
    data = resource.select(['id', 'facility_type_id'], limit=None, represent=True, show_links=False)
    result = data['rows']
    self.assertEqual(renderer.queries, 1)
    self.assertTrue(isinstance(result, list))
    self.assertEqual(len(result), 1)
    output = result[0]
    self.assertTrue(isinstance(output, Storage))
    self.assertTrue((fname in output))
    representation = output[fname].split(',    ')
    self.assertEqual(len(representation), 2)
    self.assertTrue((self.fac_types[0].name in representation))
    self.assertTrue((self.fac_types[1].name in representation))
