From 736edc16f5ce9d977586d25d60f423ac9d847b15 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. --- src/leap/mail/incoming/tests/test_incoming_mail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/leap/mail/incoming/tests/test_incoming_mail.py b/src/leap/mail/incoming/tests/test_incoming_mail.py index 754df9f..e4e8dbf 100644 --- a/src/leap/mail/incoming/tests/test_incoming_mail.py +++ b/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