'Test TOC Anchorlink.'

def testAnchorLink(self):

    md = markdown.Markdown(extensions=[markdown.extensions.toc.TocExtension(anchorlink=True)])
    text = u'#    Header    1\n\n##    Header    *2*'
    self.assertEqual(md.convert(text), u'<h1    id="header-1"><a    class="toclink"    href="#header-1">Header    1</a></h1>\n<h2    id="header-2"><a    class="toclink"    href="#header-2">Header    <em>2</em></a></h2>')
