'Test HTML serialization.'

def testHtml(self):

    el = markdown.util.etree.Element(u'div')
    p = markdown.util.etree.SubElement(el, u'p')
    p.text = u'foo'
    markdown.util.etree.SubElement(el, u'hr')
    self.assertEqual(markdown.serializers.to_html_string(el), u'<div><p>foo</p><hr></div>')
