def test_split_query_string_must_split_on_spaces_unless_in_quotes(self):
     s = """daniel AND country!=FR OR -"Le PEN Marine" country:FR is_active:1 group=NI"""
     output = ParsedStringQBuilder.split_query_string(s)
     expected_output = [
         "daniel",
         "AND",
         "country!=FR",
         "OR",
         '-"Le PEN Marine"',
         "country:FR",
         "is_active:1",
         "group=NI",
     ]
     self.assertEqual(expected_output, output)
 def do(input, output):
     self.assertEqual(ParsedStringQBuilder.split_query_element(input), output)