'Test TOC Permalink.'

def testPermalink(self):

    md = markdown.Markdown(extensions=[markdown.extensions.toc.TocExtension(permalink=True)])
    text = u'#    Header'
    self.assertEqual(md.convert(text), u'<h1    id="header">Header<a    class="headerlink"    href="#header"    title="Permanent    link">&para;</a></h1>')
