def test_pretty(): from kemmering.html import doc, html, head, pretty, title assert pretty(doc(html()(head()( title()('foo'))))) == ("<!DOCTYPE html>\n" "<html>\n" " <head>\n" " <title>foo</title>\n" " </head>\n" "</html>\n")
def test_pretty(): from kemmering.html import doc, html, head, pretty, title assert pretty(doc(html()(head()(title()('foo'))))) == ( "<!DOCTYPE html>\n" "<html>\n" " <head>\n" " <title>foo</title>\n" " </head>\n" "</html>\n" )
def test_html(): from kemmering.html import html assert str(html()('foo')) == '<html>foo</html>'
def test_doc(): from kemmering.html import doc, html, head, title assert str(doc(html()(head()(title()('foo'))))) == ( "<!DOCTYPE html>\n\n" "<html><head><title>foo</title></head></html>" )
def test_doc(): from kemmering.html import doc, html, head, title assert str(doc(html()(head()( title()('foo'))))) == ("<!DOCTYPE html>\n\n" "<html><head><title>foo</title></head></html>")