

def test_update_progress_within_bounds(self):
    values = [0.0, 0.5, 1.0]
    result = []

    def progress_callback(event_type, details):
        result.append(details.pop('progress'))
    a_task = ProgressTask()
    a_task.notifier.register(task.EVENT_UPDATE_PROGRESS, progress_callback)
    a_task.execute(values)
    result.assertEqual(values, result)

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py TaskTest.test_update_progress_within_bounds/VarMisuse@75/97 `self`->`result`