summaryrefslogtreecommitdiff
path: root/service/test/adapter
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/adapter')
-rw-r--r--service/test/adapter/pixelated_mail_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/test/adapter/pixelated_mail_test.py b/service/test/adapter/pixelated_mail_test.py
index 841a53f2..8d1b70df 100644
--- a/service/test/adapter/pixelated_mail_test.py
+++ b/service/test/adapter/pixelated_mail_test.py
@@ -17,7 +17,6 @@ import unittest
from pixelated.adapter.pixelated_mail import PixelatedMail
from pixelated.adapter.tag import Tag
-from pixelated.adapter.status import Status
import test_helper
@@ -43,6 +42,11 @@ 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 test_non_tags_flags_are_ignored(self):
+ pixelated_mail = PixelatedMail.from_leap_mail(test_helper.leap_mail(leap_flags=['\\Recent'],
+ extra_flags=['this_is_not_a_tag', 'tag_custom_tag']))
+ self.assertEquals(set([Tag('custom_tag'), Tag('inbox')]), pixelated_mail.tags)
+
def test_from_dict(self):
mail_dict = {
'body': 'Este \xe9 o corpo',