summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-10-16 17:02:38 -0300
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-10-16 17:02:54 -0300
commitee6a923a646ff667af206fa2fcdceb5b64208f1f (patch)
tree7563918b8e82fcf1919d1aa4adfa0ab06c60b4a4 /service
parent13da0e0971acaeb3bab90892acf8be7adec3188c (diff)
Fix PEP8 errors
Diffstat (limited to 'service')
-rw-r--r--service/test/unit/controllers/mails_controller_test.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/service/test/unit/controllers/mails_controller_test.py b/service/test/unit/controllers/mails_controller_test.py
index 3bec840b..ce2ce539 100644
--- a/service/test/unit/controllers/mails_controller_test.py
+++ b/service/test/unit/controllers/mails_controller_test.py
@@ -18,16 +18,17 @@ import unittest
from mockito import *
from pixelated.controllers.mails_controller import MailsController
+
class TestMailsController(unittest.TestCase):
def setUp(self):
- self.mail_service = mock() #MailService(pixelated_mailboxes, pixelated_mail_sender, tag_service, soledad_querier)
- search_engine = mock() #SearchEngine()
- draft_service = mock() #DraftService(pixelated_mailboxes)
+ self.mail_service = mock()
+ search_engine = mock()
+ draft_service = mock()
self.mails_controller = MailsController(mail_service=self.mail_service,
- draft_service=draft_service,
- search_engine=search_engine)
+ draft_service=draft_service,
+ search_engine=search_engine)
self.input_mail = mock()
self.input_mail.json = {'header': {'from': 'a@a.a', 'to': 'b@b.b'},
@@ -36,6 +37,7 @@ class TestMailsController(unittest.TestCase):
'status': [],
'security_casing': {},
'body': 'email body'}
+
def tearDown(self):
unstub()
@@ -63,4 +65,3 @@ class TestMailsController(unittest.TestCase):
def _send_that_throws_exception(self, ident, mail):
raise Exception('email sending failed', 'more information of error', 123, 'there was a code before this')
-