def test_get_words_python():
 expected_words = ['Apply', 'Browser', 'Count', 'Garcia', 'Juan', 'Make', 'Manuel', 'N', 'N_', 'Qt', 'QtWebKit', 'R', 'Set', 'Simple', 'This', 'Very', 'VerySimpleWebBrowser', 'Web', 'Z', 'Z_', '__file__', 'a', 'and', 'argwhere', 'array', 'as', 'author', 'birth', 'borders', 'com', 'def', 'for', 'gmail', 'home', 'i', 'implemented', 'import', 'in', 'int', 'is', 'iterate_', 'jmg', 'neighbours', 'new', 'np', 'null', 'numpy', 'over', 'print', 'range', 'ravel', 'return', 'rules', 'shape', 'stay', 'sure', 'survive', 'utn', 'values', 'zeros']
 assert (sorted(expected_words) == sorted(get_words_by_filename('example.py')))
 assert (sorted(expected_words) == sorted(get_words_by_content('example.py')))

def test_get_words_python ( ) : expected_words = [ 'Apply' , 'Browser' , 'Count' , 'Garcia' , 'Juan' , 'Make' , 'Manuel' , 'N' , 'N_' , 'Qt' , 'QtWebKit' , 'R' , 'Set' , 'Simple' , 'This' , 'Very' , 'VerySimpleWebBrowser' , 'Web' , 'Z' , 'Z_' , '__file__' , 'a' , 'and' , 'argwhere' , 'array' , 'as' , 'author' , 'birth' , 'borders' , 'com' , 'def' , 'for' , 'gmail' , 'home' , 'i' , 'implemented' , 'import' , 'in' , 'int' , 'is' , 'iterate_' , 'jmg' , 'neighbours' , 'new' , 'np' , 'null' , 'numpy' , 'over' , 'print' , 'range' , 'ravel' , 'return' , 'rules' , 'shape' , 'stay' , 'sure' , 'survive' , 'utn' , 'values' , 'zeros' ] assert ( sorted ( expected_words ) == sorted ( get_words_by_filename ( 'example.py' ) ) ) assert ( sorted ( expected_words ) == sorted ( get_words_by_content ( 'example.py' ) ) )
test for get word from html file syntax .