'Check lazy setup method'

def testSetup(self):

    r = S3Represent(options=self.test_opts)
    self.assertFalse(r.setup)
    r._setup()
    self.assertTrue(r.setup)
    self.assertEqual(r.tablename, None)
    self.assertEqual(r.options, self.test_opts)
    r = S3Represent(lookup='org_organisation')
    self.assertFalse(r.setup)
    self.assertEqual(r.options, None)
    self.assertEqual(r.tablename, 'org_organisation')
    self.assertEqual(r.key, None)
    self.assertEqual(r.fields, None)
    self.assertEqual(r.labels, None)
    self.assertEqual(r.table, None)
    r._setup()
    self.assertTrue(r.setup)
    self.assertEqual(r.options, None)
    self.assertEqual(r.tablename, 'org_organisation')
    self.assertEqual(r.key, 'id')
    self.assertEqual(r.fields, ['name'])
    self.assertEqual(r.labels, None)
    self.assertEqual(r.table, current.db.org_organisation)
