'Test Fenced Code with Highlighted Lines.'

def testFencedLanguageAndHighlightLines(self):

    text0 = u'\n```.python    hl_lines="1    3"\n#line    1\n#line    2\n#line    3\n```'
    text1 = u"\n~~~{.python    hl_lines='1    3'}\n#line    1\n#line    2\n#line    3\n~~~"
    for text in (text0, text1):
        md = markdown.Markdown(extensions=[markdown.extensions.codehilite.CodeHiliteExtension(linenums=None, guess_lang=False), u'markdown.extensions.fenced_code'])
        if self.has_pygments:
            self.assertStartsWith(u'<div    class="codehilite"><pre><span    class="hll"', md.convert(text).replace(u'<span></span>', u''))
        else:
            self.assertEqual(md.convert(text), u'<pre    class="codehilite"><code    class="language-python">#line    1\n#line    2\n#line    3</code></pre>')
