From 94cda0236e69bdcee5663515e025712ae745718f Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Fri, 29 Jun 2012 13:46:54 -0400 Subject: [PATCH] Add advanced tests --- tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests.py b/tests.py index 719745c..2f8328b 100644 --- a/tests.py +++ b/tests.py @@ -55,3 +55,12 @@ class ConversionTests(unittest.TestCase): def test_ul(self): self.assertEqual(md(''), '* a\n* b\n') + + +class AdvancedTests(unittest.TestCase): + + def test_nested(self): + self.assertEqual( + md('

This is an example link.

'), + 'This is an [example link](http://example.com/).\n\n' + )