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