summaryrefslogtreecommitdiff
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
commit736edc16f5ce9d977586d25d60f423ac9d847b15 (patch)
tree410d23df3275295e811609cf1d3197eff9e4eb3a
parent8c312540e7974cd93e4c030167f9e937ed6aa16b (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.
-rw-r--r--src/leap/mail/incoming/tests/test_incoming_mail.py2
1 files changed, 2 insertions, 0 deletions
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):