'Test TOC with attr_list Extension.'

def testWithAttrList(self):

    md = markdown.Markdown(extensions=[u'markdown.extensions.toc', u'markdown.extensions.attr_list'])
    text = u'#    Header    1\n\n##    Header    2    {    #foo    }'
    self.assertEqual(md.convert(text), u'<h1    id="header-1">Header    1</h1>\n<h2    id="foo">Header    2</h2>')
    self.assertEqual(md.toc, u'<div    class="toc">\n<ul>\n<li><a    href="#header-1">Header    1</a><ul>\n<li><a    href="#foo">Header    2</a></li>\n</ul>\n</li>\n</ul>\n</div>\n')
