summaryrefslogtreecommitdiff
path: root/service/test
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2015-01-06 14:26:39 +0100
committerLisa Junger <ljunger@thoughtworks.com>2015-01-06 14:26:39 +0100
commit2c19e7acbfb238e4fcd17725142c7ae9c43a3a77 (patch)
tree6532a01b3a2ca14c87614047cbcf9bb6ffffdc58 /service/test
parent28c885bf47b9249f95aeb875f5f558911b2193c2 (diff)
Issue #183 adds ALL to special tags.
Diffstat (limited to 'service/test')
-rw-r--r--service/test/integration/tags_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/test/integration/tags_test.py b/service/test/integration/tags_test.py
index 03d6f4b3..6072392c 100644
--- a/service/test/integration/tags_test.py
+++ b/service/test/integration/tags_test.py
@@ -16,6 +16,7 @@
import json
from test.support.integration import *
+from pixelated.adapter.services.tag_service import TagService
class TagsTest(SoledadTestBase):
@@ -45,8 +46,9 @@ class TagsTest(SoledadTestBase):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
self.client.add_mail_to_inbox(mail)
- response = self.post_tags(mail.ident, self._tags_json(['DRAFTS']))
- self.assertEquals("None of the following words can be used as tags: drafts", response)
+ for tag in TagService.SPECIAL_TAGS:
+ response = self.post_tags(mail.ident, self._tags_json([tag.name.upper()]))
+ self.assertEquals("None of the following words can be used as tags: %s" % tag.name, response)
mail = self.client.mailboxes.inbox().mail(mail.ident)
self.assertNotIn('drafts', mail.tags)