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