From a0f691edc72b19cade8f05493f7743019af4d837 Mon Sep 17 00:00:00 2001 From: Thais Siqueira Date: Wed, 18 May 2016 17:17:21 -0300 Subject: Add not called asserts to testDecryptEmail The functions decryption_error_not_called and add_decrypted_header_called were not being called on testDecryptEmail. So the asserts was not being called as well. This change adds the above functions as callbacks to be called after the fetch method. --- mail/src/leap/mail/incoming/tests/test_incoming_mail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail/src/leap/mail/incoming/tests/test_incoming_mail.py b/mail/src/leap/mail/incoming/tests/test_incoming_mail.py index 754df9f..e4e8dbf 100644 --- a/mail/src/leap/mail/incoming/tests/test_incoming_mail.py +++ b/mail/src/leap/mail/incoming/tests/test_incoming_mail.py @@ -293,6 +293,8 @@ subject: independence of cyberspace d.addCallback( lambda message: self._do_fetch(message.as_string())) + d.addCallback(decryption_error_not_called) + d.addCallback(add_decrypted_header_called) return d def testListener(self): -- cgit v1.2.3