def METHOD_NAME(self, db, http_request):
    user = UserFactory()
    http_request.user = user
    le = models.LoggedEvent.objects.create_for_request(
        http_request, kind=models.LoggedEvent.CHOICES.SAFE_MODE_DISABLE
    )
    events = list(AmplitudeLoggedEventSynchronizer().iter_events(EPOCH))
    assert len(events) == 1
    event = events[0]
    assert event.event_type == "Disable compatibility mode"
    assert event.user_id == user.id
    assert event.device_id
    assert event.device_id.startswith("justfix-device:")
    assert event.event_properties == {}
    assert event.time == le.created_at