From f261ffd065bcfea13d41a9861232155816c5933f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 7 Apr 2015 21:15:06 -0400 Subject: Refactor options tests --- tests/options/html4.html | 2 -- tests/options/html4.txt | 2 -- tests/test_apis.py | 12 ++++++++++++ tests/test_legacy.py | 6 ------ 4 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 tests/options/html4.html delete mode 100644 tests/options/html4.txt diff --git a/tests/options/html4.html b/tests/options/html4.html deleted file mode 100644 index 7c88ad7..0000000 --- a/tests/options/html4.html +++ /dev/null @@ -1,2 +0,0 @@ -

A test of the most
-basic of html/xhtml differences.

\ No newline at end of file diff --git a/tests/options/html4.txt b/tests/options/html4.txt deleted file mode 100644 index fddaf8e..0000000 --- a/tests/options/html4.txt +++ /dev/null @@ -1,2 +0,0 @@ -A test of the most -basic of html/xhtml differences. \ No newline at end of file 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): '

foo

' ) + def testXHTMLOutput(self): + self.assertEqual( + markdown.markdown('foo \nbar', output_format='xhtml'), + '

foo
\nbar

' + ) + + def testHTMLOutput(self): + self.assertEqual( + markdown.markdown('foo \nbar', output_format='html'), + '

foo
\nbar

' + ) + class testAtomicString(unittest.TestCase): """ Test that AtomicStrings are honored (not parsed). """ diff --git a/tests/test_legacy.py b/tests/test_legacy.py index 0d0dd09..f4e807e 100644 --- a/tests/test_legacy.py +++ b/tests/test_legacy.py @@ -41,12 +41,6 @@ class TestMisc(LegacyTestCase): location = os.path.join(parent_test_dir, 'misc') -class TestOptions(LegacyTestCase): - location = os.path.join(parent_test_dir, 'options') - - html4 = Kwargs(output_format='html4') - - class TestPhp(LegacyTestCase): """ Notes on "excluded" tests: -- cgit v1.2.3