summaryrefslogtreecommitdiff
path: root/service/test/adapter/pixelated_mail_sender_test.py
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-09-01 16:56:20 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-09-01 16:56:20 -0300
commitd7ddea1021c88b797d6d8eded842237e175d343b (patch)
tree8627d4d94c6aacef9173c3cf39a592a64b51fa6c /service/test/adapter/pixelated_mail_sender_test.py
parenta44f7738f43a349a8c3fd4768dd54add13b3ce12 (diff)
fixing unit tests
Diffstat (limited to 'service/test/adapter/pixelated_mail_sender_test.py')
-rw-r--r--service/test/adapter/pixelated_mail_sender_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/adapter/pixelated_mail_sender_test.py b/service/test/adapter/pixelated_mail_sender_test.py
index 0a8c017b..aadeaeab 100644
--- a/service/test/adapter/pixelated_mail_sender_test.py
+++ b/service/test/adapter/pixelated_mail_sender_test.py
@@ -23,8 +23,8 @@ import test_helper
class PixelatedMailSenderTest(unittest.TestCase):
def setUp(self):
self.mail_address = "pixelated@pixelated.org"
- self.mail_sender = PixelatedMailSender(self.mail_address)
- self.mail_sender.smtp_client = mock()
+ self.smtp_client = mock()
+ self.mail_sender = PixelatedMailSender(self.mail_address, self.smtp_client)
def test_send_mail_sends_to_To_Cc_and_Bcc(self):
mail_dict = test_helper.mail_dict()
@@ -41,4 +41,4 @@ class PixelatedMailSenderTest(unittest.TestCase):
'anothercc@pixelated.org',
'bcc@pixelated.org', 'anotherbcc@pixelated.org']
- verify(self.mail_sender.smtp_client).sendmail(self.mail_address, expected_recipients, "mail as smtp string")
+ verify(self.smtp_client).sendmail(self.mail_address, expected_recipients, "mail as smtp string")