def test_merge_smallest_bucket():

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

    # Top 2 words are 'cc' and 'bb'
    assert t.most_frequent_terms(2) == set(['dd', 'cc', 'bb'])
Say 1000 gets passed as the depth, and the 1000th term in the term-counts
dataset/ETHPy150Open davidmcclure/textplot/test/text/test_most_frequent_terms.py/test_merge_smallest_bucket