def test_attributes_time_series_forest(params):
    """Test the attributes of a fitted instance of TimeSeriesForest."""
    real_attributes = ['estimator_', 'classes_', 'estimators_',
                       'feature_importances_', 'indices_', 'n_features_in_',
                       'oob_decision_function_', 'oob_score_']
    fake_attributes = ['yolo', 'whoopsy', 'mistake_were_made_']

    clf = TimeSeriesForest(n_estimators=30, random_state=42, **params)
    clf.fit(X_arange, y)

    for attribute in real_attributes:
        assert hasattr(clf, attribute)

    for attribute in fake_attributes:
        assert not hasattr(clf, attribute)
Test the attributes of a fitted instance of TimeSeriesForest.
pyts/classification/tests/test_time_series_forest.py