def htmleq_(html1, html2, msg=None):
    dom1 = assert_and_parse_html(html1, msg,
                                 'First argument is not valid HTML:')
    dom2 = assert_and_parse_html(html2, msg,
                                 'Second argument is not valid HTML:')

    eq_(dom1, dom2)
Asserts that two HTML snippets are semantically the same.
dataset/ETHPy150Open jbalogh/jingo/jingo/tests/utils.py/htmleq_