def test_get_list_oo_field(self):
        """
        REST Api: Test get list with O-O related field
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model_oo_parent_data(self.appbuilder.session, MODEL1_DATA_SIZE) as models:
            rv = self.auth_client_get(client, token, "api/v1/modelooparentapi/")
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 200)
            self.assertEqual(data["count"], MODEL1_DATA_SIZE)
            self.assertEqual(len(data[API_RESULT_RES_KEY]), self.model1api.page_size)
            expected_rel_field = {
                "field_string": models[0].child.field_string,
                "id": models[0].child.id,
            }
            self.assertEqual(data[API_RESULT_RES_KEY][0]["child"], expected_rel_field)

        REST Api: Test get list with O-O related field
        
tests/test_api.py