def METHOD_NAME(sentry_init, capture_events, integrations):
    sentry_init(default_integrations=False, integrations=integrations)
    events = capture_events()
    def crash():
        1 / 0
    t = Thread(target=crash)
    t.start()
    t.join()
    if integrations:
        (event,) = events
        (exception,) = event["exception"]["values"]
        assert exception["type"] == "ZeroDivisionError"
        assert exception["mechanism"]["type"] == "threading"
        assert not exception["mechanism"]["handled"]
    else:
        assert not events