def test_sort_chart_list_by_value(): test_list = [['a', 1], ['b', 2]] result = sort_chart_list_by_value(test_list) assert result == [['b', 2], ['a', 1]]
def test_sort_chart_list_by_value(self): test_list = [['a', 1], ['b', 2]] result = sort_chart_list_by_value(test_list) self.assertEqual(result, [['b', 2], ['a', 1]])