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

Method testFileObjects

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

Source from the content-addressed store, hash-verified

103 self.assertEqual(output, '<p>foo</p>')
104
105 def testFileObjects(self):
106 infile = BytesIO(bytes('foo', encoding='utf-8'))
107 outfile = BytesIO()
108 markdown.markdownFromFile(input=infile, output=outfile)
109 outfile.seek(0)
110 self.assertEqual(outfile.read().decode('utf-8'), '<p>foo</p>')
111
112 def testStdinStdout(self):
113 markdown.markdownFromFile()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected