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

Method setUp

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

Source from the content-addressed store, hash-verified

80 """ Tests of ConvertFile. """
81
82 def setUp(self):
83 self.saved = sys.stdin, sys.stdout
84 sys.stdin = StringIO('foo')
85 sys.stdout = TextIOWrapper(BytesIO())
86
87 def tearDown(self):
88 sys.stdin, sys.stdout = self.saved

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected