

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_validate_node(self, mock_client):
    node_uuid = '123'
    self.cloud.validate_node(node_uuid)
    mock_client.node.validate.assert_called_once_with(node_uuid=node_uuid)

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_validate_node/original