def testGetComponent(self):

        assertEqual = self.assertEqual
        assertNotEqual = self.assertNotEqual
        assertTrue = self.assertTrue

        resource = current.s3db.resource("org_organisation",
                                         uid="GETTESTORG")
        records = resource.get(self.org_id, "office")
        assertNotEqual(records, None)

        assertTrue(len(records), 1)
        record = records[0]
        assertTrue(isinstance(record, Row))
        assertEqual(record.organisation_id, self.org_id)
        assertEqual(record.uuid, "GETTESTOFFICE")
        assertEqual(record.name, "GetTestOffice")

    # -------------------------------------------------------------------------
get() with ID and component alias returns the components records
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ResourceGetTests.testGetComponent