Skip to content

Commit

Permalink
Add test for input argument of generate_from_frequencies().
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcor committed Apr 7, 2016
1 parent 41c5c20 commit b006ff0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_wordcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ def test_process_text():
assert_true(isinstance(result, dict))


def test_generate_from_frequencies():
# test that generate_from_frequencies() takes input argument of class
# 'dict_items'
wc = WordCloud(max_words=50)
words = wc.process_text(THIS)
items = words.items()
result = wc.generate_from_frequencies(items)

assert_true(isinstance(result, WordCloud))


def check_parameters():
# check that parameters are actually used
pass

0 comments on commit b006ff0

Please sign in to comment.