def METHOD_NAME(mock_libvirt):
    """
    Test that events are skipped if their ID isn't defined in the libvirt
    module (older libvirt)
    """
    mock_libvirt.mock_add_spec(
        [
            "openReadOnly",
            "virEventRegisterDefaultImpl",
            "virEventRunDefaultImpl",
            "VIR_DOMAIN_EVENT_ID_LIFECYCLE",
        ],
        spec_set=True,
    )
    libvirt_events.start("test:///", "test/prefix")
    # Check events registration and deregistration
    mock_cnx = mock_libvirt.openReadOnly.return_value
    mock_cnx.domainEventRegisterAny.assert_any_call(
        None,
        mock_libvirt.VIR_DOMAIN_EVENT_ID_LIFECYCLE,
        libvirt_events._domain_event_lifecycle_cb,
        {"prefix": "test/prefix", "object": "domain", "event": "lifecycle"},
    )
    # Network events should have been skipped
    mock_cnx.networkEventRegisterAny.assert_not_called()