def test_getMiniHTML(self): ''' test_getMiniHTML - Gets a "mini" representation that only contains the functional whitespace characters in HTML repr ''' parser = AdvancedHTMLParser() parser.parseStr(TEST_HTML) miniHTML = parser.getMiniHTML() assert miniHTML == '<html ><head ><title >Hello World</title></head> <body > <div >Hello world <span >And welcome to the show.</span> </div> </body></html>'
def test_getMiniHTML(self): ''' test_getMiniHTML - Gets a "mini" representation that only contains the functional whitespace characters in HTML repr ''' parser = AdvancedHTMLParser() parser.parseStr(TEST_HTML) miniHTML = parser.getMiniHTML() assert miniHTML == '<html ><head ><title >Hello World</title></head> <body > <div >Hello world <span >And welcome to the show.</span> </div> </body></html>'