From 2c19e7acbfb238e4fcd17725142c7ae9c43a3a77 Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Tue, 6 Jan 2015 14:26:39 +0100 Subject: Issue #183 adds ALL to special tags. --- service/test/integration/tags_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'service/test/integration') 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) -- cgit v1.2.3