示例#1
0
 def test_parse_sort_string_noe(self):
     res = parse_sort_string(None)
     self.assertEqual(['_score'], res)
示例#2
0
 def test_parse_sort_string_asc(self):
     res = parse_sort_string('id')
     self.assertIn({'id': {'unmapped_type': 'string', 'order': 'asc', 'missing': '_last'}}, res)