def METHOD_NAME(design):
    """Test that events with nan values."""
    with pytest.raises(
        ValueError, match=("The following column must not contain nan values:")
    ):
        check_events(design())