def METHOD_NAME(self, api_token_factory, user, app):
    api_token = api_token_factory(user=user["id"])
    logged_out = mock.Mock()
    url = url_for("user.logout")
    with signals.user_logged_out.connected_to(logged_out):
        app.get(url)
        assert logged_out.call_count == 0
        headers = {"Authorization": api_token["token"]}
        app.get(url, headers=headers)
        assert logged_out.call_count == 1