(self)
| 298 | self.assertIn('TO', msg) |
| 299 | |
| 300 | def test_as_string(self): |
| 301 | msg = self._msgobj('msg_01.txt') |
| 302 | with openfile('msg_01.txt', encoding="utf-8") as fp: |
| 303 | text = fp.read() |
| 304 | self.assertEqual(text, str(msg)) |
| 305 | fullrepr = msg.as_string(unixfrom=True) |
| 306 | lines = fullrepr.split('\n') |
| 307 | self.assertStartsWith(lines[0], 'From ') |
| 308 | self.assertEqual(text, NL.join(lines[1:])) |
| 309 | |
| 310 | def test_as_string_policy(self): |
| 311 | msg = self._msgobj('msg_01.txt') |
nothing calls this directly
no test coverage detected