async def METHOD_NAME(
    client: TestClient,
    mock_invitations_service_http_api: AioResponsesMock,
    expected_invitation: InvitationContent,
):
    assert client.app
    async with NewUser(
        params={
            "name": "test-user",
            "email": expected_invitation.guest,
        },
        app=client.app,
    ):
        with pytest.raises(InvalidInvitation):
            await validate_invitation_url(
                app=client.app,
                guest_email=expected_invitation.guest,
                invitation_url="https://server.com#register?invitation=1234",
            )