mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Add tests case for text content with text attachment
This commit is contained in:
parent
dfad0f8f9c
commit
4100f2ea62
1 changed files with 2 additions and 1 deletions
|
|
@ -401,6 +401,7 @@ class TestProcessEmail(EmailMessageTestCase):
|
||||||
msg = self.mailbox.process_incoming_message(email_object)
|
msg = self.mailbox.process_incoming_message(email_object)
|
||||||
|
|
||||||
self.assertEqual(msg.attachments.all().count(), 1)
|
self.assertEqual(msg.attachments.all().count(), 1)
|
||||||
|
self.assertNotIn('This is an attachment.', msg.text)
|
||||||
|
|
||||||
def test_message_with_long_content(self):
|
def test_message_with_long_content(self):
|
||||||
email_object = self._get_email_object(
|
email_object = self._get_email_object(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue