diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-01-28 16:09:04 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-01-28 16:09:09 -0300 |
commit | 2652238050640d7984f9464a9487d960133af19f (patch) | |
tree | 7f8998f31de534b420e78e9b689b6677a7762856 /service/test/integration | |
parent | 188a0d0f3c8fcc3160c8b9480ebd7078a89f178c (diff) |
for #173, now searching on sender field for contacts auto complete
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_contacts.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/test/integration/test_contacts.py b/service/test/integration/test_contacts.py index bfa91ea4..1a471440 100644 --- a/service/test/integration/test_contacts.py +++ b/service/test/integration/test_contacts.py @@ -34,6 +34,17 @@ class ContactsTest(SoledadTestBase): d.addCallback(_assert) return d + def test_FROM_address_is_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='Sender') + + def _assert(contacts): + self.assertIn('Formatted Sender <sender@from.com>', contacts) + d.addCallback(_assert) + return d + 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') |