def test_one_sided_selection_deprecation():
    """Check that we raise a FutureWarning when accessing the parameter `estimator_`."""
    oss = OneSidedSelection(random_state=RND_SEED)
    oss.fit_resample(X, Y)
    warn_msg = "`estimator_` attribute has been deprecated"
    with pytest.warns(FutureWarning, match=warn_msg):
        oss.estimator_
Check that we raise a FutureWarning when accessing the parameter `estimator_`.
imblearn/under_sampling/_prototype_selection/tests/test_one_sided_selection.py