#NEWLINE# def test_generate_from_frequencies( ) : #NEWLINE# #INDENT# wc = WordCloud ( max_words = 50 ) #NEWLINE# words = wc . process_text ( THIS ) #NEWLINE# items = words . items ( ) #NEWLINE# result = wc . generate_from_frequencies ( items ) #NEWLINE# assert_true ( isinstance ( result , WordCloud ) )