class_docstr: Test FeatureImportances visualizer
docstr: Assert that fit calls draw
docstr_tok: ["Assert","that","fit","calls","draw"]
code: def test_fit_calls_draw(self):
      """
      Assert that fit calls draw
      """
      model = MockEstimator()
      model.make_importance_param("coef_")
  
      visualizer = FeatureImportances(model)
  
      with mock.patch.object(visualizer, "draw") as mdraw:
          visualizer.fit(np.random.rand(100, 42), np.random.rand(100))
          mdraw.assert_called_once()
  
imports: import pytest
  import numpy
  import numpy.testing
  import matplotlib.pyplot
  from yellowbrick.exceptions import NotFitted
  from yellowbrick.model_selection.importances import *
  from yellowbrick.datasets import load_occupancy, load_concrete
  from sklearn.datasets import load_iris
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.ensemble import GradientBoostingClassifier
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.linear_model import LogisticRegression, Lasso
  from sklearn.impute import SimpleImputer
  from sklearn.pipeline import Pipeline
  from unittest import mock
  from tests.base import VisualTestCase
label_desc: Use image node_id 14 for calling the TestFeatureImportancesVisualizer obj's underlying member method code with example usage: obj.test_fit_calls_draw() without return types