#NEWLINE# def test_default( ) : #NEWLINE# #INDENT# wc = WordCloud ( max_words = 50 ) #NEWLINE# wc . generate ( THIS ) #NEWLINE# assert_equal ( len ( wc . words_ ) , wc . max_words ) #NEWLINE# assert_equal ( len ( wc . layout_ ) , wc . max_words ) #NEWLINE# wc_image = wc . to_image ( ) #NEWLINE# assert_equal ( wc_image . size , ( wc . width , wc . height ) ) #NEWLINE# wc_array = np . array ( wc ) #NEWLINE# assert_array_equal ( wc_array , wc . to_array ( ) ) #NEWLINE# assert_equal ( wc_array . shape , ( wc . height , wc . width , 3 ) )