示例#1
0
    def test_when_searchable_field_has_ampersand_conjunction(self):
        input_field = "Mathematics & Physics"
        expected_result = "Mathematics Physics"

        output_result = remove_conjunctions(input_field)
        self.assertEqual(expected_result, output_result)
示例#2
0
    def test_when_searchable_field_has_multiple_conjunctions(self):
        input_field = "The Mathematics with Physics"
        expected_result = "Mathematics Physics"

        output_result = remove_conjunctions(input_field)
        self.assertEqual(expected_result, output_result)
示例#3
0
    def test_when_searchable_field_is_empty_string(self):

        output_result = remove_conjunctions("")
        self.assertEqual("", output_result)