def test_sort_by_totals(self): # type: () -> None empty = [] # type: List[int] value_arrays = {'c': [0, 1], 'a': [9], 'b': [1, 1, 1], 'd': empty} self.assertEqual(sort_by_totals(value_arrays), ['a', 'b', 'c', 'd'])
def test_sort_by_totals(self) -> None: empty: List[int] = [] value_arrays = {"c": [0, 1], "a": [9], "b": [1, 1, 1], "d": empty} self.assertEqual(sort_by_totals(value_arrays), ["a", "b", "c", "d"])