def test_term_counts():

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

    assert t.term_counts() == OrderedDict([
        ('cc', 3),
        ('bb', 2),
        ('aa', 1)
    ])
term_counts() should return a map of term -> count.
dataset/ETHPy150Open davidmcclure/textplot/test/text/test_term_counts.py/test_term_counts