Esempio n. 1
0
 def test_should_return_true_bcoz_is_facet_query(self):
     query_string = 'type:help and title:hello description:"world" facets[abc]'
     is_facet_query = plasticparser.is_facet_query(query_string)
     self.assertEqual(is_facet_query, True)
Esempio n. 2
0
 def test_should_return_false_bcoz_is_not_facet_query(self):
     query_string = 'type:help and title:hello description:"world"'
     is_facet_query = plasticparser.is_facet_query(query_string)
     self.assertEqual(is_facet_query, False)