From b15aeef1c4dbfb2f6bda88eb3c94b730074e1903 Mon Sep 17 00:00:00 2001 From: Gerry LaMontagne Date: Thu, 2 Sep 2010 20:12:07 -0400 Subject: Added test files for bug fix to ticket 62 --- tests/misc/block_html_attr.html | 27 +++++++++++++++++++++++++++ tests/misc/block_html_attr.txt | 24 ++++++++++++++++++++++++ tests/misc/block_html_simple.html | 10 ++++++++++ tests/misc/block_html_simple.txt | 9 +++++++++ 4 files changed, 70 insertions(+) create mode 100644 tests/misc/block_html_attr.html create mode 100644 tests/misc/block_html_attr.txt create mode 100644 tests/misc/block_html_simple.html create mode 100644 tests/misc/block_html_simple.txt (limited to 'tests') diff --git a/tests/misc/block_html_attr.html b/tests/misc/block_html_attr.html new file mode 100644 index 0000000..d1c9efc --- /dev/null +++ b/tests/misc/block_html_attr.html @@ -0,0 +1,27 @@ +
+Raw HTML processing should not confuse this with the blockquote below +
+ +
+
+
+
+

Header2

+
+
+

Header3

+

Paragraph

+

Header3

+

Paragraph

+
+

Paragraph

+
+

Paragraph

+

linktext

+
+
+ +
+
+ + \ No newline at end of file diff --git a/tests/misc/block_html_attr.txt b/tests/misc/block_html_attr.txt new file mode 100644 index 0000000..b2603cc --- /dev/null +++ b/tests/misc/block_html_attr.txt @@ -0,0 +1,24 @@ +
+Raw HTML processing should not confuse this with the blockquote below +
+
+
+
+
+

Header2

+
+
+

Header3

+

Paragraph

+

Header3

+

Paragraph

+
+

Paragraph

+
+

Paragraph

+

linktext

+
+
+ +
+
diff --git a/tests/misc/block_html_simple.html b/tests/misc/block_html_simple.html new file mode 100644 index 0000000..dce68bc --- /dev/null +++ b/tests/misc/block_html_simple.html @@ -0,0 +1,10 @@ +

foo

+ + \ No newline at end of file diff --git a/tests/misc/block_html_simple.txt b/tests/misc/block_html_simple.txt new file mode 100644 index 0000000..d108c50 --- /dev/null +++ b/tests/misc/block_html_simple.txt @@ -0,0 +1,9 @@ +

foo

+ -- cgit v1.2.3 From fb262f7793efd6eda61e9571cc68cfbd5bb1bf9e Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 29 Aug 2010 00:10:29 -0400 Subject: Fixed Ticket 71. Wrapper functions no longer do there own thing with extensions. All behavior is now within the class. --- tests/test_apis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_apis.py b/tests/test_apis.py index e420c2a..51f4e73 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -249,13 +249,13 @@ class TestErrors(unittest.TestCase): def testLoadExtensionFailure(self): """ Test failure of an extension to load. """ self.assertRaises(MarkdownWarning, - markdown.extensions.load_extension, 'non_existant_ext') + markdown.Markdown, extensions=['non_existant_ext']) def testLoadBadExtension(self): """ Test loading of an Extension with no makeExtension function. """ _create_fake_extension(name='fake', has_factory_func=False) self.assertRaises(MarkdownException, - markdown.extensions.load_extension, 'fake') + markdown.Markdown, extensions=['fake']) def testNonExtension(self): """ Test loading a non Extension object as an extension. """ -- cgit v1.2.3