diff --git a/frappe/tests/test_global_search.py b/frappe/tests/test_global_search.py index d132288421..6b18e68a3d 100644 --- a/frappe/tests/test_global_search.py +++ b/frappe/tests/test_global_search.py @@ -50,8 +50,12 @@ class TestGlobalSearch(unittest.TestCase): self.assertTrue('After Mulder awakens from his coma, he realizes his duty to prevent alien colonization. ' in results[0].content) results = global_search.search('extraterrestrial') - self.assertTrue('Carter explored themes of extraterrestrial involvement in ancient mass extinctions in this episode, the third in a trilogy.' in results[0].content) - + self.assertTrue('Carter explored themes of extraterrestrial involvement in ancient mass extinctions in this episode, the third in a trilogy.' in results[0].content) + results = global_search.search('awakens & duty & alien') + self.assertTrue('After Mulder awakens from his coma, he realizes his duty to prevent alien colonization. ' in results[0].content) + results = global_search.search('awakens & duty & otherterm') + self.assertTrue(!results[0].content) + def test_update_doc(self): self.insert_test_events() test_subject = 'testing global search'