MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

2584# Test the MIMEMessage class
2585class TestMIMEMessage(TestEmailBase):
2586 def setUp(self):
2587 with openfile('msg_11.txt', encoding="utf-8") as fp:
2588 self._text = fp.read()
2589
2590 def test_type_error(self):
2591 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