aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_apis.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-08-29 00:10:29 -0400
committerWaylan Limberg <waylan@gmail.com>2010-08-29 00:10:29 -0400
commitfb262f7793efd6eda61e9571cc68cfbd5bb1bf9e (patch)
treead23e4d66111d80c734b03cbb84dca711525e4c3 /tests/test_apis.py
parentb15aeef1c4dbfb2f6bda88eb3c94b730074e1903 (diff)
downloadmarkdown-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.py4
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. """