

@mock.patch('nailgun.rpc.receiver.logs_utils.delete_node_logs')
def test_delete_logs_after_reset(self, mock_delete_logs):
    cluster = self.env.create(cluster_kwargs={
        
    }, nodes_kwargs=[{
        'api': False,
        'status': consts.NODE_STATUSES.ready,
    }])
    node = self.env.nodes[0]
    task = Task(uuid=str(uuid.uuid4()), name=consts.TASK_NAMES.reset_environment, cluster_id=cluster.id)
    self.db.add(task)
    task.db.flush()
    resp = {
        'task_uuid': task.uuid,
        'status': consts.TASK_STATUSES.ready,
        'nodes': [{
            'uid': node.uid,
        }],
    }
    self.receiver.reset_environment_resp(**resp)
    mock_delete_logs.assert_called_once_with(node)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_rpc_consumer.py TestResetEnvironment.test_delete_logs_after_reset/VarMisuse@108/146 `self`->`task`