diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-26 19:33:44 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-26 22:31:02 -0300 |
commit | 2c50e4495bfbdb04a05d07227c014ce5d0f28936 (patch) | |
tree | 10e927be1a133aa9bee9b56142c7e0c647707194 /service/test/adapter | |
parent | e06316d7eb6610ac2ffd5e0a1309f6c40603c968 (diff) |
From dict is working now
Diffstat (limited to 'service/test/adapter')
-rw-r--r-- | service/test/adapter/pixelated_mail_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/service/test/adapter/pixelated_mail_test.py b/service/test/adapter/pixelated_mail_test.py index c7fe9112..841a53f2 100644 --- a/service/test/adapter/pixelated_mail_test.py +++ b/service/test/adapter/pixelated_mail_test.py @@ -43,7 +43,7 @@ class TestPixelatedMail(unittest.TestCase): pixelated_mail = PixelatedMail.from_leap_mail(test_helper.leap_mail(extra_flags=['tag_tag_work_tag_'])) self.assertIn(Tag('tag_work_tag_'), pixelated_mail.tags) - def from_dict(self): + def test_from_dict(self): mail_dict = { 'body': 'Este \xe9 o corpo', 'header': { @@ -58,10 +58,10 @@ class TestPixelatedMail(unittest.TestCase): mail = PixelatedMail.from_dict(mail_dict) - self.assertEqual(mail.headers.cc, ['cc@pixelated.com']) - self.assertEqual(mail.headers.to, ['to@pixelated.com']) - self.assertEqual(mail.headers.bcc, ['bcc@pixelated.com']) - self.assertEqual(mail.headers.subject, 'Oi') + self.assertEqual(mail.headers['cc'], ['cc@pixelated.com']) + self.assertEqual(mail.headers['to'], ['to@pixelated.com']) + self.assertEqual(mail.headers['bcc'], ['bcc@pixelated.com']) + self.assertEqual(mail.headers['subject'], 'Oi') self.assertEqual(mail.ident, '') self.assertEqual(mail.tags, ['sent']) self.assertEqual(mail.body, 'Este \xe9 o corpo') |