def test_parse_sort_string_noe(self): res = parse_sort_string(None) self.assertEqual([], res)
def test_parse_sort_string_asc(self): res = parse_sort_string('id') self.assertIn({'id': 'asc'}, res)