def METHOD_NAME(self):
    grant_profile_scope = ApiGrant.objects.create(
        user=self.user,
        application=self.application,
        redirect_uri="https://example.com",
        scope_list=["openid", "profile"],
    )
    user_details = self.id_token._get_user_details(grant_profile_scope)
    assert user_details == {
        "name": grant_profile_scope.user.name,
        "avatar_type": grant_profile_scope.user.avatar_type,
        "avatar_url": grant_profile_scope.user.avatar_url,
        "date_joined": str(grant_profile_scope.user.date_joined),
    }