MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / testMetaDataWithoutNewline

Method testMetaDataWithoutNewline

tests/test_extensions.py:137–141  ·  view source on GitHub ↗

Test document with only metadata and no newline at end.

(self)

Source from the content-addressed store, hash-verified

135 self.assertEqual(self.md.Meta, {})
136
137 def testMetaDataWithoutNewline(self):
138 """ Test document with only metadata and no newline at end."""
139 text = 'title: No newline'
140 self.assertEqual(self.md.convert(text), '')
141 self.assertEqual(self.md.Meta, {'title': ['No newline']})
142
143 def testMetaDataReset(self):
144 """ Test that reset call remove Meta entirely """

Callers

nothing calls this directly

Calls 1

convertMethod · 0.80

Tested by

no test coverage detected