summaryrefslogtreecommitdiff
path: root/service/test/integration/test_tags.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-03-18 16:58:54 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-03-18 16:59:33 -0300
commitbdba0f2fce00d53d445371be3c09cda01274d0e8 (patch)
tree3b1152f31bbab0274901fccc0372283300deab24 /service/test/integration/test_tags.py
parent0dbd662b5bdc372f2148f72c86412e0555eac1dc (diff)
no more self.client, since those methods are available from test case base
Diffstat (limited to 'service/test/integration/test_tags.py')
-rw-r--r--service/test/integration/test_tags.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/service/test/integration/test_tags.py b/service/test/integration/test_tags.py
index 2e178a4d..aa20e88b 100644
--- a/service/test/integration/test_tags.py
+++ b/service/test/integration/test_tags.py
@@ -26,7 +26,7 @@ class TagsTest(SoledadTestBase):
def test_add_tag_to_an_inbox_mail_and_query(self):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(mail)
+ self.add_mail_to_inbox(mail)
self.post_tags(mail.ident, self._tags_json(['IMPORTANT']))
@@ -38,13 +38,13 @@ class TagsTest(SoledadTestBase):
def test_use_old_casing_when_same_tag_with_different_casing_is_posted(self):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(mail)
+ self.add_mail_to_inbox(mail)
self.post_tags(mail.ident, self._tags_json(['ImPoRtAnT']))
mails = self.get_mails_by_tag('ImPoRtAnT')
self.assertEquals({'ImPoRtAnT'}, set(mails[0].tags))
another_mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(another_mail)
+ self.add_mail_to_inbox(another_mail)
self.post_tags(another_mail.ident, self._tags_json(['IMPORTANT']))
mails = self.get_mails_by_tag('IMPORTANT')
self.assertEquals(0, len(mails))
@@ -55,7 +55,7 @@ class TagsTest(SoledadTestBase):
def test_tags_are_case_sensitive(self):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(mail)
+ self.add_mail_to_inbox(mail)
self.post_tags(mail.ident, self._tags_json(['ImPoRtAnT']))
@@ -70,7 +70,7 @@ class TagsTest(SoledadTestBase):
def test_empty_tags_are_not_allowed(self):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(mail)
+ self.add_mail_to_inbox(mail)
self.post_tags(mail.ident, self._tags_json(['tag1', ' ']))
@@ -80,11 +80,11 @@ class TagsTest(SoledadTestBase):
def test_addition_of_reserved_tags_is_not_allowed(self):
mail = MailBuilder().with_subject('Mail with tags').build_input_mail()
- self.client.add_mail_to_inbox(mail)
+ self.add_mail_to_inbox(mail)
for tag in 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)
+ mail = self.mailboxes.inbox().mail(mail.ident)
self.assertNotIn('drafts', mail.tags)