diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-14 14:02:49 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-14 14:02:49 -0300 |
commit | ff6aafebcc40d3b734da794e732a0b1cd3526964 (patch) | |
tree | abb750b4da9c340fdf2868203f5f9d46ca5c7d08 /service/test/adapter/mail_service_test.py | |
parent | b5e0973245c2af1c5c9d67f5f15eeb00a93cfc93 (diff) |
Update mail tags are now on the right place
Diffstat (limited to 'service/test/adapter/mail_service_test.py')
-rw-r--r-- | service/test/adapter/mail_service_test.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/service/test/adapter/mail_service_test.py b/service/test/adapter/mail_service_test.py index 4751413d..8187e586 100644 --- a/service/test/adapter/mail_service_test.py +++ b/service/test/adapter/mail_service_test.py @@ -32,8 +32,10 @@ class TestMailService(unittest.TestCase): mailservice = MailService() - raw_mail = self._raw_mail() - raw_mail['tags'].append('my_new_tag') - mails = mailservice.update_mail(raw_mail) + new_tags = ['test'] + mails = mailservice.update_tags(mailservice.mail(6), new_tags) - self.assertIn(Tag('my_new_tag'), mailservice.all_tags()) + for tag in mailservice.all_tags(): + print tag.name + + self.assertIn(Tag('test'), mailservice.all_tags()) |