(self)
| 1580 | self._check_sample(msg) |
| 1581 | |
| 1582 | def test_initialize_with_nothing(self): |
| 1583 | # Initialize without arguments |
| 1584 | msg = self._factory() |
| 1585 | self._post_initialize_hook(msg) |
| 1586 | self.assertIsInstance(msg, email.message.Message) |
| 1587 | self.assertIsInstance(msg, mailbox.Message) |
| 1588 | self.assertIsInstance(msg, self._factory) |
| 1589 | self.assertEqual(msg.keys(), []) |
| 1590 | self.assertFalse(msg.is_multipart()) |
| 1591 | self.assertIsNone(msg.get_payload()) |
| 1592 | |
| 1593 | def test_initialize_incorrectly(self): |
| 1594 | # Initialize with invalid argument |
nothing calls this directly
no test coverage detected