summaryrefslogtreecommitdiff
path: root/tests/integration/mail/outgoing
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-26 18:56:49 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-27 19:33:30 +0200
commit13760d78fba87570c91c0a2e702980d2ec45a0ed (patch)
tree309b2925857abe720468b32dfebebf82d2076817 /tests/integration/mail/outgoing
parent6109dce577a160e64a87ec0573c83c310e913cbc (diff)
[tests] fix tests
mock a renamed method.
Diffstat (limited to 'tests/integration/mail/outgoing')
-rw-r--r--tests/integration/mail/outgoing/test_outgoing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/mail/outgoing/test_outgoing.py b/tests/integration/mail/outgoing/test_outgoing.py
index 1684a54b..1a4a7cc0 100644
--- a/tests/integration/mail/outgoing/test_outgoing.py
+++ b/tests/integration/mail/outgoing/test_outgoing.py
@@ -140,7 +140,8 @@ class TestOutgoingMail(KeyManagerWithSoledadTestCase):
Test if message is signed with sender key.
"""
# mock the key fetching
- self.km._fetch_keys_from_server = Mock(
+ # XXX this is fucking ugly.
+ self.km._fetch_keys_from_server_and_store_local = Mock(
return_value=fail(errors.KeyNotFound()))
recipient = User('ihavenopubkey@nonleap.se',
'gateway.leap.se', self.proto, ADDRESS)
@@ -191,6 +192,7 @@ class TestOutgoingMail(KeyManagerWithSoledadTestCase):
d.addCallback(assert_verify)
return d
+ # TODO shouldn't depend on private method on this test
d = self.outgoing_mail._maybe_encrypt_and_sign(self.raw, recipient)
d.addCallback(check_signed)
d.addCallback(verify)