aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-03-08 21:08:31 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2015-03-08 21:08:31 -0400
commit4f9d4fff86c638ab2edb569ad9eb14f82728808d (patch)
treeabd6855ebb0fdffa6a8ed13b7ed06d2fde1b3864 /tests
parentf54cd8652df84d5f8655819fff0631f0fc92a2b6 (diff)
downloadmarkdown-4f9d4fff86c638ab2edb569ad9eb14f82728808d.tar.gz
markdown-4f9d4fff86c638ab2edb569ad9eb14f82728808d.tar.bz2
markdown-4f9d4fff86c638ab2edb569ad9eb14f82728808d.zip
Removed `yaml` option from meta-data extension.
The option was buggy. Rather than try to fix it, it is being removed. This feeture should exist as a seperate extension. Fixes #390.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_extensions.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index 6a57878..38f0be3 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -8,7 +8,6 @@ continue to work as advertised. This used to be accomplished by doctests.
"""
from __future__ import unicode_literals
-import datetime
import unittest
import markdown
@@ -510,25 +509,6 @@ The body. This is paragraph one.'''
self.assertEqual(self.md.convert(text), '')
self.assertEqual(self.md.Meta, {'title': ['No newline']})
- def testYamlObjectMetaData(self):
- """ Test metadata specified as a complex YAML object. """
- md = markdown.Markdown(extensions=[markdown.extensions.meta.MetaExtension(yaml=True)])
- text = '''---
-Author: John Doe
-Date: 2014-11-29 14:15:16
-Integer: 0x16
----
-
-Some content.'''
- self.assertEqual(md.convert(text), '<p>Some content.</p>')
- self.assertEqual(
- md.Meta, {
- 'Author': 'John Doe',
- 'Date': datetime.datetime(2014, 11, 29, 14, 15, 16),
- 'Integer': 22
- }
- )
-
class TestWikiLinks(unittest.TestCase):
""" Test Wikilinks Extension. """