Test document with only metadata and no newline at end.
(self)
| 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 """ |