예제 #1
0
파일: test_dom.py 프로젝트: griels/pypy-sc
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
파일: test_dom.py 프로젝트: griels/pypy-sc
 def roundtrip(html):
     return dom._serialize_html(parseString(html).documentElement)
예제 #4
0
 def roundtrip(html):
     return dom._serialize_html(parseString(html).documentElement)