

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_remove_machine_from_maintenance(self, mock_client):
    self.node.set_maintenance.return_value = None
    node_id = 'node01'
    self.cloud.remove_machine_from_maintenance(node_id)
    mock_client.node.set_maintenance.assert_called_with(node_id='node01', state='false')

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_remove_machine_from_maintenance/VarMisuse@26/43 `mock_client`->`self`