(self)
| 1721 | self._check_from(msg) |
| 1722 | |
| 1723 | def test_initialize_with_unixfrom(self): |
| 1724 | # Initialize with a message that already has a _unixfrom attribute |
| 1725 | msg = mailbox.Message(_sample_message) |
| 1726 | msg.set_unixfrom('From foo@bar blah') |
| 1727 | msg = mailbox.mboxMessage(msg) |
| 1728 | self.assertEqual(msg.get_from(), 'foo@bar blah') |
| 1729 | self.assertEqual(msg.get_unixfrom(), 'From foo@bar blah') |
| 1730 | |
| 1731 | def test_from(self): |
| 1732 | # Get and set "From " line |
nothing calls this directly
no test coverage detected