summaryrefslogtreecommitdiff
path: root/service/test/integration/contacts_test.py
diff options
context:
space:
mode:
authorDuda Dornelles <dudassdornelles@gmail.com>2015-01-22 10:25:40 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-22 10:42:48 -0200
commita8274b633a62262e65c7d013e61a54541ce07bf8 (patch)
treeab3172f3fd1ffe9311bd5f1f2b0ccc139bbc14d1 /service/test/integration/contacts_test.py
parent137f1f103cf1bfb76c7e62f2ee9df21d2d1f6223 (diff)
#224 renaming tests so they get caught by trial runner
Diffstat (limited to 'service/test/integration/contacts_test.py')
-rw-r--r--service/test/integration/contacts_test.py54
1 files changed, 0 insertions, 54 deletions
diff --git a/service/test/integration/contacts_test.py b/service/test/integration/contacts_test.py
deleted file mode 100644
index 925e5e02..00000000
--- a/service/test/integration/contacts_test.py
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# Copyright (c) 2014 ThoughtWorks, Inc.
-#
-# Pixelated is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Pixelated is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-from nose.twistedtools import deferred
-from test.support.integration import SoledadTestBase, MailBuilder
-
-
-class ContactsTest(SoledadTestBase):
-
- def setUp(self):
- SoledadTestBase.setUp(self)
-
- @deferred(timeout=SoledadTestBase.DEFERRED_TIMEOUT)
- def test_TO_CC_and_BCC_fields_are_being_searched(self):
- input_mail = MailBuilder().with_tags(['important']).build_input_mail()
- self.client.add_mail_to_inbox(input_mail)
-
- d = self.get_contacts(query='recipient')
-
- def _assert(contacts):
- self.assertTrue('recipient@to.com' in contacts)
- self.assertTrue('recipient@cc.com' in contacts)
- self.assertTrue('recipient@bcc.com' in contacts)
- d.addCallback(_assert)
- return d
-
- @deferred(timeout=SoledadTestBase.DEFERRED_TIMEOUT)
- def test_trash_and_drafts_mailboxes_are_being_ignored(self):
- self.client.add_multiple_to_mailbox(1, mailbox='INBOX', to='recipient@inbox.com')
- self.client.add_multiple_to_mailbox(1, mailbox='DRAFTS', to='recipient@drafts.com')
- self.client.add_multiple_to_mailbox(1, mailbox='SENT', to='recipient@sent.com')
- self.client.add_multiple_to_mailbox(1, mailbox='TRASH', to='recipient@trash.com')
-
- d = self.get_contacts(query='recipient')
-
- def _assert(contacts):
- self.assertTrue('recipient@inbox.com' in contacts)
- self.assertTrue('recipient@sent.com' in contacts)
- self.assertFalse('recipient@drafts.com' in contacts)
- self.assertFalse('recipient@trash.com' in contacts)
- d.addCallback(_assert)
- return d