

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_set_machine_maintenace_state_false(self, mock_client):
    mock_client.node.set_maintenance.return_value = None
    node_id = 'node01'
    self.cloud.set_machine_maintenance_state(node_id, False)
    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_set_machine_maintenace_state_false/original