(self)
| 1179 | (unixfrom + _sample_message).split('\n')) |
| 1180 | |
| 1181 | def test_add_from_string(self): |
| 1182 | # Add a string starting with 'From ' to the mailbox |
| 1183 | key = self._box.add('From foo@bar blah\nFrom: foo\n\n0\n') |
| 1184 | self.assertEqual(self._box[key].get_from(), 'foo@bar blah') |
| 1185 | self.assertEqual(self._box[key].get_unixfrom(), 'From foo@bar blah') |
| 1186 | self.assertEqual(self._box[key].get_payload(), '0\n') |
| 1187 | |
| 1188 | def test_add_from_bytes(self): |
| 1189 | # Add a byte string starting with 'From ' to the mailbox |
nothing calls this directly
no test coverage detected