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

Method testFileNames

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

Source from the content-addressed store, hash-verified

120 return infile, outfile, outfd
121
122 def testFileNames(self):
123 infile, outfile, outfd = self.getTempFiles('foo')
124 markdown.markdownFromFile(input=infile, output=outfile)
125 with os.fdopen(outfd, 'r') as fp:
126 output = fp.read()
127 self.assertEqual(output, '<p>foo</p>')
128
129 def testFileObjects(self):
130 infile = BytesIO(bytes('foo', encoding='utf-8'))

Callers

nothing calls this directly

Calls 1

getTempFilesMethod · 0.95

Tested by

no test coverage detected