

def test_content_subreddit_me(reddit, oauth, refresh_token, terminal):
    with refresh_token.loader():
        SubredditContent.from_name(reddit, '/r/me', terminal.loader)
    assert isinstance(terminal.loader.exception, exceptions.AccountError)
    oauth.config.refresh_token = refresh_token
    oauth.authorize()
    with terminal.loader():
        SubredditContent.from_name(reddit, 'me', terminal.loader)
    if terminal.loader.exception:
        assert isinstance(terminal.loader.exception, exceptions.SubredditError)

dataset/ETHPy150Open michael-lazar/rtv/tests/test_content.py test_content_subreddit_me/VarMisuse@17/25 `terminal`->`refresh_token`