aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_extensions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_extensions.py')
-rw-r--r--tests/test_extensions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index cce2adf..4eb600b 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -297,6 +297,13 @@ The body. This is paragraph one.'''
'</code></pre>')
self.assertEqual(self.md.Meta, {})
+ def testMetaDataWithoutNewline(self):
+ """ Test doocument with only metadata and no newline at end."""
+ text = 'title: No newline'
+ self.assertEqual(self.md.convert(text), '')
+ self.assertEqual(self.md.Meta, {'title': ['No newline']})
+
+
class TestWikiLinks(unittest.TestCase):
""" Test Wikilinks Extension. """