(self)
| 1304 | self.assertFalse((perms & 0o111)) # Execute bits should all be off. |
| 1305 | |
| 1306 | def test_terminating_newline(self): |
| 1307 | message = email.message.Message() |
| 1308 | message['From'] = 'john@example.com' |
| 1309 | message.set_payload('No newline at the end') |
| 1310 | i = self._box.add(message) |
| 1311 | |
| 1312 | # A newline should have been appended to the payload |
| 1313 | message = self._box.get(i) |
| 1314 | self.assertEqual(message.get_payload(), 'No newline at the end\n') |
| 1315 | |
| 1316 | def test_message_separator(self): |
| 1317 | # Check there's always a single blank line after each message |
nothing calls this directly
no test coverage detected