summaryrefslogtreecommitdiff
path: root/service/test/adapter/mail_service_test.py
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-14 14:02:49 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-08-14 14:02:49 -0300
commitff6aafebcc40d3b734da794e732a0b1cd3526964 (patch)
treeabb750b4da9c340fdf2868203f5f9d46ca5c7d08 /service/test/adapter/mail_service_test.py
parentb5e0973245c2af1c5c9d67f5f15eeb00a93cfc93 (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.py10
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())