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

        with model2_data(self.appbuilder.session, 1) as models:
            pk = models[0].id
            rv = self.auth_client_get(client, token, f"api/v1/model2api/{pk}")
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(rv.status_code, 200)
            expected_rel_field = {
                "group": {
                    "field_date": None,
                    "field_float": 0.0,
                    "field_integer": 0,
                    "field_string": "test0",
                    "id": models[0].group.id,
                }
            }
            self.assertEqual(data[API_RESULT_RES_KEY], expected_rel_field)

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