From f92e802df2aeec9b2341ba5b4efea48356edf01f Mon Sep 17 00:00:00 2001 From: NavaL Date: Sat, 20 Feb 2016 19:17:17 +0100 Subject: Revert "Filter keys from attachments #608 w/ @deniscostadsc" This reverts commit f1b338e5564a8458c906f903ee7e0383dae86287. --- service/test/integration/test_leap_mailstore.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'service/test/integration') diff --git a/service/test/integration/test_leap_mailstore.py b/service/test/integration/test_leap_mailstore.py index f52d7c9c..885aa62b 100644 --- a/service/test/integration/test_leap_mailstore.py +++ b/service/test/integration/test_leap_mailstore.py @@ -49,19 +49,6 @@ class LeapMailStoreTest(SoledadTestBase): self.assertEqual(expected_mail_dict['header'], mail.as_dict()['header']) self.assertEqual(expected_mail_dict['header'], fetched_mail.as_dict()['header']) - @defer.inlineCallbacks - def test_remove_key_from_attachments(self): - input_mail = MIMEMultipart() - input_mail.attach(MIMEText(u'a utf8 message', _charset='utf-8')) - attachment = MIMEApplication('pretend to be binary attachment data') - attachment.add_header('Content-Disposition', 'attachment', filename='pub.key') - attachment.replace_header('Content-Type', 'application/pgp-keys') - input_mail.attach(attachment) - - mail = yield self.mail_store.add_mail('INBOX', input_mail.as_string()) - fetched_mail = yield self.mail_store.get_mail(mail.ident, include_body=True) - self.assertEquals(fetched_mail.as_dict().get('attachments'), []) - @defer.inlineCallbacks def test_round_trip_through_soledad_keeps_attachment(self): input_mail = MIMEMultipart() @@ -72,7 +59,6 @@ class LeapMailStoreTest(SoledadTestBase): mail = yield self.mail_store.add_mail('INBOX', input_mail.as_string()) fetched_mail = yield self.mail_store.get_mail(mail.ident, include_body=True) - self.assertDictEqual(mail.as_dict(), fetched_mail.as_dict()) @defer.inlineCallbacks def test_all_mails(self): -- cgit v1.2.3