

def _test__port_action_with_failures(self, exc=None, action=None):
    port = {
        'network_id': 'foo_network_id',
        'device_owner': constants.DEVICE_OWNER_DHCP,
        'fixed_ips': [{
            'subnet_id': 'foo_subnet_id',
        }],
    }
    self.plugin.create_port.side_effect = exc
    self.utils.side_effect = exc
    self.assertIsNone(self.callbacks._port_action(self.plugin, mock.Mock(), {
        'port': action,
    }, action))

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py TestDhcpRpcCallback._test__port_action_with_failures/VarMisuse@92/139 `port`->`action`