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

Method testFileNames

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

Source from the content-addressed store, hash-verified

96 return infile, outfile, outfd
97
98 def testFileNames(self):
99 infile, outfile, outfd = self.getTempFiles('foo')
100 markdown.markdownFromFile(input=infile, output=outfile)
101 with os.fdopen(outfd, 'r') as fp:
102 output = fp.read()
103 self.assertEqual(output, '<p>foo</p>')
104
105 def testFileObjects(self):
106 infile = BytesIO(bytes('foo', encoding='utf-8'))

Callers

nothing calls this directly

Calls 1

getTempFilesMethod · 0.95

Tested by

no test coverage detected