summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2016-05-18 17:17:21 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2016-05-18 17:17:21 -0300
commita0f691edc72b19cade8f05493f7743019af4d837 (patch)
tree9b85c6af26551b4e742cbb445e149ddb59bc7941 /mail
parent75941a7d0bc82738209d42d434042c76ab990dbe (diff)
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.
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/incoming/tests/test_incoming_mail.py2
1 files changed, 2 insertions, 0 deletions
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 754df9f0..e4e8dbff 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):