

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_purge_node_instance_info(self, mock_client):
    uuid = 'aaa'
    expected_patch = [{
        'op': 'remove',
        'path': '/instance_info',
    }]
    self.cloud.purge_node_instance_info(expected_patch)
    mock_client.node.update.assert_called_with(node_id=uuid, patch=expected_patch)

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_purge_node_instance_info/VarMisuse@54/88 `uuid`->`expected_patch`