def test_integration(): assert render_html(html(head(), body( ))) == '<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n</body>\n</html>'
def test_integration(): assert render_html(html(head(), body())) == '<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n</body>\n</html>'
def test_render(): """ Tests the `render()` function. """ assert render_html(div(), doctype='') == render_basic(div()) assert render_html(div()) == '<!DOCTYPE html>\n<div>\n</div>'