summaryrefslogtreecommitdiff
path: root/service/test/adapter/test_tag_service.py
diff options
context:
space:
mode:
authorPatrick Maia <pmaia@thoughtworks.com>2014-09-15 11:39:25 -0300
committerPatrick Maia <pmaia@thoughtworks.com>2014-09-15 11:48:47 -0300
commit4eeca4b0e3ba10ad08a937d08546384f1c67351c (patch)
treecb6fee2a42121ab658dc35c9fbee19b01954d4e8 /service/test/adapter/test_tag_service.py
parentfa6806de54873dca3823a9a95b3c40c1c97934cc (diff)
#74 - Moving message to trash mailbox
Diffstat (limited to 'service/test/adapter/test_tag_service.py')
-rw-r--r--service/test/adapter/test_tag_service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/adapter/test_tag_service.py b/service/test/adapter/test_tag_service.py
index 20888092..b3a68c2b 100644
--- a/service/test/adapter/test_tag_service.py
+++ b/service/test/adapter/test_tag_service.py
@@ -30,8 +30,8 @@ class TagServiceTest(unittest.TestCase):
self.tag_service = TagService(tag_index=self.tag_index)
def test_index_is_initialized_with_mail_tags_if_empty(self):
- mail_one = PixelatedMail.from_leap_mail(test_helper.leap_mail(uid=0, extra_headers={'X-Tags': ['tag_1']}))
- mail_two = PixelatedMail.from_leap_mail(test_helper.leap_mail(uid=1, extra_headers={'X-Tags': ['tag_2']}))
+ mail_one = PixelatedMail.from_leap_mail(test_helper.leap_mail(uid=0, extra_headers={'X-Tags': '["tag_1"]'}), test_helper.leap_mailbox())
+ mail_two = PixelatedMail.from_leap_mail(test_helper.leap_mail(uid=1, extra_headers={'X-Tags': '["tag_2"]'}), test_helper.leap_mailbox())
mails = [mail_one, mail_two]
self.tag_service.load_index(mails)