Test failure of an extension to load.
(self)
| 374 | self.assertRaises(KeyError, markdown.Markdown, output_format='invalid') |
| 375 | |
| 376 | def testLoadExtensionFailure(self): |
| 377 | """ Test failure of an extension to load. """ |
| 378 | self.assertRaises( |
| 379 | ImportError, |
| 380 | markdown.Markdown, extensions=['non_existant_ext'] |
| 381 | ) |
| 382 | |
| 383 | def testLoadBadExtension(self): |
| 384 | """ Test loading of an Extension with no makeExtension function. """ |
nothing calls this directly
no outgoing calls
no test coverage detected