'Test scenario where a fake_network has two reserved ports, and
update_dhcp_port fails for the first of those with a RemoteError
different than DhcpPortInUse.'

def test__setup_reserved_dhcp_port_with_fake_remote_error(self):

    fake_network = FakeDualNetworkReserved2()
    fake_network.tenant_id = 'Tenant    A'
    reserved_port_2 = fake_network.ports[(-1)]
    mock_plugin = mock.Mock()
    dh = dhcp.DeviceManager(cfg.CONF, mock_plugin)
    messaging_error = oslo_messaging.RemoteError(exc_type='FakeRemoteError')
    mock_plugin.update_dhcp_port.side_effect = [messaging_error, reserved_port_2]
    with testtools.ExpectedException(oslo_messaging.RemoteError):
        dh.setup_dhcp_port(fake_network)
