diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-08-29 00:10:29 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-08-29 00:10:29 -0400 |
commit | fb262f7793efd6eda61e9571cc68cfbd5bb1bf9e (patch) | |
tree | ad23e4d66111d80c734b03cbb84dca711525e4c3 /tests/test_apis.py | |
parent | b15aeef1c4dbfb2f6bda88eb3c94b730074e1903 (diff) | |
download | markdown-fb262f7793efd6eda61e9571cc68cfbd5bb1bf9e.tar.gz markdown-fb262f7793efd6eda61e9571cc68cfbd5bb1bf9e.tar.bz2 markdown-fb262f7793efd6eda61e9571cc68cfbd5bb1bf9e.zip |
Fixed Ticket 71. Wrapper functions no longer do there own thing with extensions. All behavior is now within the class.
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r-- | tests/test_apis.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. """ |