def METHOD_NAME(logbook_logger, logbook_handler):
    with logbook_handler.applicationbound():
        logbook_logger.warning("This is a test warning")
    assert len(logbook_handler.client.events) == 1
    event = logbook_handler.client.events[ERROR][0]
    assert event["log"]["logger_name"] == __name__
    assert event["log"]["level"] == "warning"
    assert event["log"]["message"] == "This is a test warning"
    assert "stacktrace" in event["log"]
    assert "exception" not in event
    assert "param_message" in event["log"]
    assert event["log"]["param_message"] == "This is a test warning"