

def test_deploy_resp_error_node_progress(self):
    task = self._prepare_task(consts.TASK_NAMES.deployment)
    kwargs = self._create_resp_kwargs(task.uuid, consts.TASK_STATUSES.running, 20, consts.TASK_STATUSES.error, 50)
    self.receiver.deploy_resp(**kwargs)
    self.db.refresh(self.env.nodes[0])
    self.assertEqual(self.env.nodes[0].progress, 100)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_rpc_consumer.py TestConsumer.test_deploy_resp_error_node_progress/original