def METHOD_NAME(self, update):
    # Test that it's sometimes None per docstring
    user = update.effective_user
    if not (
        update.channel_post is not None
        or update.edited_channel_post is not None
        or update.poll is not None
    ):
        assert user.id == 1
    else:
        assert user is None