Ejemplo n.º 1
0
 def test_space_separated_values(self):
     """
     Tests the _create_searchterms method for space-separated values.
     """
     handler = ReservoirQueryParameters(included_keywords='bear cat dog',
                                        excluded_keywords='eagle fox gator')
     terms = handler._create_searchterms()
     self.make_comparisons_for_words(terms)
Ejemplo n.º 2
0
 def test_phrases_with_commas_spaces(self):
     """
     Tests the _create_searchterms method for both comma-separated and
     space-separated values that include phrases.
     """
     handler = ReservoirQueryParameters(
         included_keywords='bear, "bird dog", deer, "wild turkey"',
         excluded_keywords='"eagle owl" "sparrow hawk" fox gator')
     terms = handler._create_searchterms()
     self.make_comparisons_for_phrases(terms)