'Test BlockParser.parseDocument.'

def testParseDocument(self):

    lines = [u'#foo', u'', u'bar', u'', u'                baz']
    tree = self.parser.parseDocument(lines)
    self.assertTrue(isinstance(tree, markdown.util.etree.ElementTree))
    self.assertTrue(markdown.util.etree.iselement(tree.getroot()))
    self.assertEqual(markdown.serializers.to_xhtml_string(tree.getroot()), u'<div><h1>foo</h1><p>bar</p><pre><code>baz\n</code></pre></div>')
