Add advanced tests

This commit is contained in:
Matthew Tretter
2012-06-29 13:46:54 -04:00
parent 22c5b2cade
commit 94cda0236e

View File

@@ -55,3 +55,12 @@ class ConversionTests(unittest.TestCase):
def test_ul(self):
self.assertEqual(md('<ul><li>a</li><li>b</li></ul>'), '* a\n* b\n')
class AdvancedTests(unittest.TestCase):
def test_nested(self):
self.assertEqual(
md('<p>This is an <a href="http://example.com/">example link</a>.</p>'),
'This is an [example link](http://example.com/).\n\n'
)