summaryrefslogtreecommitdiff
path: root/service/test/integration/test_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/integration/test_search.py')
-rw-r--r--service/test/integration/test_search.py8
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)