1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

Adding a (hopefully) failing test case for #52.

This commit is contained in:
Adam Coddington 2015-07-07 22:46:52 -07:00
parent 95f4d5c7ff
commit 4c16494b1a
2 changed files with 42 additions and 0 deletions

View file

@ -230,3 +230,12 @@ class TestProcessEmail(EmailMessageTestCase):
second_reply_msg = msg.reply(reply_email_object)
self.assertEqual(self.mailbox.from_email, second_reply_msg.from_header)
def test_message_with_text_attachment(self):
email_object = self._get_email_object(
'message_with_text_attachment.eml',
)
msg = self.mailbox.process_incoming_message(email_object)
self.assertEqual(msg.attachments.all().count(), 1)