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

Method setUp

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

Source from the content-addressed store, hash-verified

104 """ Tests of ConvertFile. """
105
106 def setUp(self):
107 self.saved = sys.stdin, sys.stdout
108 sys.stdin = StringIO('foo')
109 sys.stdout = TextIOWrapper(BytesIO())
110
111 def tearDown(self):
112 sys.stdin, sys.stdout = self.saved

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected