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