MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_email/test_email.py:2520–2522  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2518# Test the MIMEMessage class
2519class TestMIMEMessage(TestEmailBase):
2520 def setUp(self):
2521 with openfile('msg_11.txt', encoding="utf-8") as fp:
2522 self._text = fp.read()
2523
2524 def test_type_error(self):
2525 self.assertRaises(TypeError, MIMEMessage, 'a plain string')

Callers

nothing calls this directly

Calls 2

openfileFunction · 0.90
readMethod · 0.45

Tested by

no test coverage detected