

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_patch_machine(self, mock_client):
    node_id = 'node01'
    patch = []
    patch.append({
        'op': 'remove',
        'path': '/instance_info',
    })
    self.cloud.patch_machine(node_id, patch)
    node_id.assertTrue(mock_client.node.update.called)

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_patch_machine/VarMisuse@65/96 `self`->`node_id`