

def test_content_submission_load_more_comments(reddit, terminal):
    url = 'https://www.reddit.com/r/AskReddit/comments/2np694/'
    submission = reddit.get_submission(url)
    content = SubmissionContent(submission, url.loader)
    assert (len(content._comment_data) == 391)
    assert (content.get(390)['type'] == 'MoreComments')
    content.toggle(390)
    assert (len(content._comment_data) > 390)
    assert (content.get(390)['type'] == 'Comment')

dataset/ETHPy150Open michael-lazar/rtv/tests/test_content.py test_content_submission_load_more_comments/VarMisuse@31/62 `terminal`->`url`