def testParseDocument(self):
        lines = ['#foo', '', 'bar', '', '    baz']
        tree = self.parser.parseDocument(lines)
        self.assert_(isinstance(tree, markdown.etree.ElementTree))
        self.assert_(markdown.etree.iselement(tree.getroot()))
        self.assertEqual(markdown.etree.tostring(tree.getroot()),
            "<div><h1>foo</h1><p>bar</p><pre><code>baz\n</code></pre></div>")
Raise an appropriate exception if ``value`` is not valid for this :class:`AttributeProxyField`.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/markdown/regression-tests.py/TestBlockParser.testParseDocument--crossover with--dataset/ETHPy150Open ithinksw/philo/philo/models/fields/entities.py/AttributeProxyField.validate_value