

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_set_machine_power_on(self, mock_client):
    mock_client.node.set_power_state.return_value = None
    node_id = 'node01'
    return_value = self.cloud.set_machine_power_on(node_id)
    self.assertEqual(None, return_value)
    self.node.set_power_state.assert_called_with(node_id='node01', state='on')

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_set_machine_power_on/VarMisuse@60/96 `mock_client`->`self`