b and strong tag conversion

This commit is contained in:
Matthew Tretter
2012-06-29 13:05:48 -04:00
parent 9798a14f19
commit de92943b32
2 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ class BasicTests(unittest.TestCase):
class ConversionTests(unittest.TestCase):
def test_b(self):
self.assertEqual(md('<b>Hello</b>'), '**Hello**')
def test_em(self):
self.assertEqual(md('<em>Hello</em>'), '_Hello_')
@@ -31,3 +34,6 @@ class ConversionTests(unittest.TestCase):
def test_i(self):
self.assertEqual(md('<i>Hello</i>'), '_Hello_')
def test_strong(self):
self.assertEqual(md('<strong>Hello</strong>'), '**Hello**')