示例#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
文件: tests.py 项目: russiancow/stag
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
文件: tests.py 项目: russiancow/stag
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>'