aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_apis.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-04-07 21:15:06 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2018-07-31 11:40:59 -0400
commitf261ffd065bcfea13d41a9861232155816c5933f (patch)
tree7add804effaaf78e6304376f3824719266b5c8c8 /tests/test_apis.py
parentcba86d6175d00b897d6f5c4b3fec640e7309de60 (diff)
downloadmarkdown-f261ffd065bcfea13d41a9861232155816c5933f.tar.gz
markdown-f261ffd065bcfea13d41a9861232155816c5933f.tar.bz2
markdown-f261ffd065bcfea13d41a9861232155816c5933f.zip
Refactor options tests
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r--tests/test_apis.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index c813e56..b5c7733 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -695,6 +695,18 @@ class testSerializers(unittest.TestCase):
'<p>foo</p>'
)
+ def testXHTMLOutput(self):
+ self.assertEqual(
+ markdown.markdown('foo \nbar', output_format='xhtml'),
+ '<p>foo<br />\nbar</p>'
+ )
+
+ def testHTMLOutput(self):
+ self.assertEqual(
+ markdown.markdown('foo \nbar', output_format='html'),
+ '<p>foo<br>\nbar</p>'
+ )
+
class testAtomicString(unittest.TestCase):
""" Test that AtomicStrings are honored (not parsed). """