Пример #1
0
def test_integration():
    assert render_html(html(head(), body(
    ))) == '<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n</body>\n</html>'
Пример #2
0
def test_integration():
    assert render_html(html(head(), body())) == '<!DOCTYPE html>\n<html>\n<head>\n</head>\n<body>\n</body>\n</html>'
Пример #3
0
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>'
Пример #4
0
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>'