diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2015-02-03 21:57:48 +0000 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2015-02-03 21:57:48 +0000 |
commit | 09f1ec352f4eb7ce4a1f97beb80887c22f70ce30 (patch) | |
tree | 64ebefc7ef2bfec9e93ab415e22820300b5725b6 /service/test/integration | |
parent | 2339122f533c8467d16709b35592f77915c72c16 (diff) |
Issue #176 - tags with multiple words are now searcheable
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_search.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/test/integration/test_search.py b/service/test/integration/test_search.py index 68a808dd..1de45967 100644 --- a/service/test/integration/test_search.py +++ b/service/test/integration/test_search.py @@ -51,6 +51,14 @@ class SearchTest(SoledadTestBase): d.addCallback(_assert) return d + def test_tags_with_multiple_words_are_searchable(self): + input_mail = MailBuilder().with_tags(['one tag four words']).build_input_mail() + self.client.add_mail_to_inbox(input_mail) + + first_page = self.get_mails_by_tag('"one tag four words"', page=1, window=1) + + self.assertEqual(len(first_page), 1) + def test_that_default_tags_are_ignorable(self): input_mail = MailBuilder().with_tags(['sometag']).build_input_mail() self.client.add_mail_to_inbox(input_mail) |