

@mock.patch.object(shade.OperatorCloud, 'ironic_client')
def test_list_nics_for_machine(self, mock_client):
    mock_client.node.list_ports.return_value = []
    self.cloud.list_nics_for_machine('123')
    self.node.list_ports.assert_called_with(node_id='123')

dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_shade_operator.py TestShadeOperator.test_list_nics_for_machine/VarMisuse@46/72 `mock_client`->`self`