def test_minify_2(self): raw_html = """<!DOCTYPE html> <html> <head> </head> <body> <p>Test!</p> <p>Test2!</p>This should be left alone <p>Test3!</p> As should this </body> </html>""" expected = ( """<!DOCTYPE html><html><head></head><body><p>Test!</p>""" """<p>Test2!</p>This should be left alone <p>Test3!</p> As should this </body></html>""" ) self.assertEqual(generate.minify_html(raw_html), expected)
def test_minify_2(self): raw_html = """<!DOCTYPE html> <html> <head> </head> <body> <p>Test!</p> <p>Test2!</p>This should be left alone <p>Test3!</p> As should this </body> </html>""" expected = """<!DOCTYPE html><html><head></head><body><p>Test!</p>""" \ """<p>Test2!</p>This should be left alone <p>Test3!</p> As should this </body></html>""" self.assertEqual(generate.minify_html(raw_html), expected)
def test_minify(self): raw_html = """<!DOCTYPE html> <html> <head> </head> <body> <p>Test!</p> </body> </html>""" expected = "<!DOCTYPE html><html><head></head><body>" "<p>Test!</p></body></html>" self.assertEqual(generate.minify_html(raw_html), expected)
def test_minify(self): raw_html = """<!DOCTYPE html> <html> <head> </head> <body> <p>Test!</p> </body> </html>""" expected = '<!DOCTYPE html><html><head></head><body>' \ '<p>Test!</p></body></html>' self.assertEqual(generate.minify_html(raw_html), expected)