summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-06-01 17:36:53 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-06-01 17:36:53 -0300
commit377ffe8bc17bbcf00b6342428bb91eb3f2e41a20 (patch)
treedf04fec0648ec533979549fc66d17dc22459f65d /service
parent4f5190de1e27f24bae8b094e54254cce9fc8bf6b (diff)
Fix _attach_key mock to reflect bitmask-dev changes
Diffstat (limited to 'service')
-rw-r--r--service/test/unit/adapter/services/test_mail_sender.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/service/test/unit/adapter/services/test_mail_sender.py b/service/test/unit/adapter/services/test_mail_sender.py
index 23951214..93703c8e 100644
--- a/service/test/unit/adapter/services/test_mail_sender.py
+++ b/service/test/unit/adapter/services/test_mail_sender.py
@@ -24,8 +24,7 @@ from pixelated.adapter.model.mail import InputMail
from pixelated.bitmask_libraries.smtp import LeapSMTPConfig
from pixelated.support.functional import flatten
from test.support.test_helper import mail_dict
-from twisted.internet import reactor, defer
-from twisted.internet.defer import Deferred
+from twisted.internet import defer
from mockito.matchers import Matcher
@@ -108,7 +107,7 @@ class MailSenderTest(unittest.TestCase):
def test_keymanager_encrypt_problem_raises_exception(self):
input_mail = InputMail.from_dict(mail_dict(), from_address='pixelated@org')
- when(OutgoingMail)._maybe_attach_key(any(), any(), any()).thenReturn(
+ when(OutgoingMail)._attach_key(any(), any()).thenReturn(
defer.succeed(None))
when(OutgoingMail)._fix_headers(any(), any(), any()).thenReturn(
defer.succeed((None, mock())))