

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_get_machine(self, mock_client):
    node = fakes.FakeMachine(id='00000000-0000-0000-0000-000000000000', name='bigOlFaker')
    mock_client.node.get.return_value = node
    machine = self.cloud.get_machine('bigOlFaker')
    mock_client.node.get.assert_called_with(node_id='bigOlFaker')
    self.assertEqual(meta.obj_to_dict(node), self)

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_get_machine/VarMisuse@86/140 `machine`->`self`