コード例 #1
0
 def test_should_return_doc_type_if_starts_with_underscore(self):
     query_string = 'type:help_and_more and title:hello description:"world"'
     doc_types = plasticparser.get_document_types(query_string)
     self.assertEqual(doc_types, ['help_and_more'])
コード例 #2
0
 def test_should_return_doc_types_of_query_string_if_any(self):
     query_string = 'type:help and title:hello description:"world"'
     doc_types = plasticparser.get_document_types(query_string)
     self.assertEqual(doc_types, ['help'])