'Test HeaderIDs with Attr_List extension.'

def testHeaderIdWithAttr_List(self):

    text = u'#    Header1    {:    #foo    }\n#    Header2    {:    .bar    }'
    self.assertEqual(markdown.markdown(text, [u'markdown.extensions.headerid', u'markdown.extensions.attr_list']), u'<h1    id="foo">Header1</h1>\n<h1    class="bar"    id="header2">Header2</h1>')
    self.assertEqual(markdown.markdown(text, [u'markdown.extensions.attr_list', u'markdown.extensions.headerid']), u'<h1    id="foo">Header1</h1>\n<h1    class="bar"    id="header2">Header2</h1>')
