def test_most_frequent_terms():

    t = Text('aa bb bb cc cc cc')

    # Top 2 words are 'cc' and 'bb'
    assert t.most_frequent_terms(2) == set(['cc', 'bb'])
most_frequent_terms() should return the N most frequent terms.
dataset/ETHPy150Open davidmcclure/textplot/test/text/test_most_frequent_terms.py/test_most_frequent_terms