def METHOD_NAME(self, reddit):
    reddit.read_only = False
    messages = list(reddit.inbox.messages())
    count = len(messages)
    while messages:
        message = messages.pop(0)
        messages.extend(message.replies)
        count -= 1
        try:
            assert message.author is None or isinstance(message.author, Redditor)
            assert isinstance(message.dest, (Redditor, Subreddit))
            assert isinstance(message.replies, list)
            assert message.subreddit is None or isinstance(
                message.subreddit, Subreddit
            )
        except Exception:
            import pprint
            pprint.pprint(vars(message))
            raise
    assert count < 0