From 09f1ec352f4eb7ce4a1f97beb80887c22f70ce30 Mon Sep 17 00:00:00 2001 From: Patrick Maia Date: Tue, 3 Feb 2015 21:57:48 +0000 Subject: Issue #176 - tags with multiple words are now searcheable --- service/test/integration/test_search.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'service/test/integration/test_search.py') 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) -- cgit v1.2.3