示例#1
0
def test_write_styles():
    body = code_write_styles()
    assert dom._serialize_html(body) == ('<body style="background-color: red; '
                                         'color: green;"></body>')
示例#2
0
def test_write_styles():
    body = code_write_styles()
    assert dom._serialize_html(body) == ('<body style="background-color: red; '
                                         'color: green;"></body>')
示例#3
0
 def roundtrip(html):
     return dom._serialize_html(parseString(html).documentElement)
示例#4
0
 def roundtrip(html):
     return dom._serialize_html(parseString(html).documentElement)