def test_svm_smote_not_svm(data):
    """Check that we raise a proper error if passing an estimator that does not
    expose a `support_` fitted attribute."""

    err_msg = "`svm_estimator` is required to exposed a `support_` fitted attribute."
    with pytest.raises(RuntimeError, match=err_msg):
        SVMSMOTE(svm_estimator=LogisticRegression()).fit_resample(*data)
Check that we raise a proper error if passing an estimator that does not
    expose a `support_` fitted attribute.
imblearn/over_sampling/_smote/tests/test_svm_smote.py