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/test_apis.py') 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