diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-10-16 17:02:38 -0300 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-10-16 17:02:54 -0300 |
commit | ee6a923a646ff667af206fa2fcdceb5b64208f1f (patch) | |
tree | 7563918b8e82fcf1919d1aa4adfa0ab06c60b4a4 /service/test | |
parent | 13da0e0971acaeb3bab90892acf8be7adec3188c (diff) |
Fix PEP8 errors
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/unit/controllers/mails_controller_test.py | 13 |
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') - |