1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Merge branch 'compression-eml'

This commit is contained in:
Adam Dobrawy 2017-07-09 21:42:38 +02:00
commit 62b8f75bb2

View file

@ -463,7 +463,7 @@ class TestProcessEmail(EmailMessageTestCase):
msg = self.mailbox.process_incoming_message(message)
actual_email_object = msg.get_email_object()
print(msg.eml.name)
self.assertTrue(msg.eml.name.endswith('.eml.gz'))
with gzip.open(msg.eml.name, 'rb') as f: