def test_get_words_html():
 expected_words = ['DOCTYPE', 'Hello', 'Jamie', 'World', 'body', 'charset', 'en', 'h', 'head', 'here', 'html', 'lang', 'meta', 'p', 'title', 'utf', 'was']
 assert (sorted(expected_words) == sorted(get_words_by_filename('example.html')))
 assert (sorted(expected_words) == sorted(get_words_by_content('example.html')))

def test_get_words_html ( ) : expected_words = [ 'DOCTYPE' , 'Hello' , 'Jamie' , 'World' , 'body' , 'charset' , 'en' , 'h' , 'head' , 'here' , 'html' , 'lang' , 'meta' , 'p' , 'title' , 'utf' , 'was' ] assert ( sorted ( expected_words ) == sorted ( get_words_by_filename ( 'example.html' ) ) ) assert ( sorted ( expected_words ) == sorted ( get_words_by_content ( 'example.html' ) ) )
test for get word from html file syntax .