

def test_content_subreddit_initialize_invalid(reddit, terminal):
    submissions = reddit.get_subreddit('invalidsubreddit7').get_top(limit=None)
    with terminal.loader():
        SubredditContent('python', submissions, terminal.loader, 'top')
    assert isinstance(terminal.loader.exception, praw.errors.InvalidSubreddit)

dataset/ETHPy150Open michael-lazar/rtv/tests/test_content.py test_content_subreddit_initialize_invalid/original