def test_get_item_dotted_mo_notation(self):
        """
        REST Api: Test get item with dotted 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:
            model2_id = models[0].id
            uri = f"api/v1/model2dottednotationapi/{model2_id}"
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY],
                {"field_string": "test0", "group": {"field_string": "test0"}},
            )
            self.assertEqual(rv.status_code, 200)

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