MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testFileObjects

Method testFileObjects

tests/test_apis.py:129–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 self.assertEqual(output, '<p>foo</p>')
128
129 def testFileObjects(self):
130 infile = BytesIO(bytes('foo', encoding='utf-8'))
131 outfile = BytesIO()
132 markdown.markdownFromFile(input=infile, output=outfile)
133 outfile.seek(0)
134 self.assertEqual(outfile.read().decode('utf-8'), '<p>foo</p>')
135
136 def testStdinStdout(self):
137 markdown.markdownFromFile()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected