def tuple_to_intensity_dict(tuple): return tuple_to_dict((1, 2, 3, 4, 5), tuple)
def test_tuple_to_dict(self): tuple = (0, 1, 5, 3, 1) keys = (1, 2, 3, 4, 5) expected = {1: 0, 2: 1, 3: 5, 4: 3, 5: 1} actual = tuple_to_dict(keys, tuple) self.assertEqual(expected, actual)