1
0
Fork 0

Merge pull request #293 from pfouque/resend_poor_type_checking

Improve Resend documentation and checks
This commit is contained in:
Pascal Fouque 2024-05-24 09:27:36 +02:00 committed by GitHub
commit 8992babec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 21 deletions

View file

@ -345,6 +345,9 @@ class TestProcessEmail(EmailMessageTestCase):
)
msg = self.mailbox.record_outgoing_message(email_object.message())
with self.assertRaises(ValueError):
msg.reply(Message(subject="ping", body="pong"))
self.assertTrue(msg.outgoing)
actual_from = 'username@example.com'
@ -439,7 +442,7 @@ class TestProcessEmail(EmailMessageTestCase):
msg = self.mailbox.process_incoming_message(message)
actual_email_object = msg.get_email_object()
_actual_email_object = msg.get_email_object()
self.assertTrue(msg.eml.name.endswith('.eml.gz'))