class_docstr: Test the estimator functions for best fit lines.
class_docstr_tok: ["Test","the","estimator","functions","for","best","fit","lines","."]
docstr: Test the linear best fit estimator
docstr_tok: ["Test","the","linear","best","fit","estimator"]
code: def test_linear(self):
      """
      Test the linear best fit estimator
      """
      X, y = ANSCOMBE[0]
      X = np.array(X)
      y = np.array(y)
      X = X[:, np.newaxis]
  
      model = fit_linear(X, y)
      assert model is not None
      assert isinstance(model, LinearRegression)
  
file_path: yellowbrick/tests/test_bestfit.py
imports: import pytest
  import numpy
  import matplotlib.pyplot
  from tests.base import VisualTestCase
  from yellowbrick.bestfit import *
  from yellowbrick.anscombe import ANSCOMBE
  from yellowbrick.exceptions import YellowbrickValueError
  from sklearn.linear_model import LinearRegression
  from sklearn.pipeline import Pipeline
label_desc: Use image node_id 1 for calling the TestEstimator obj's underlying member method code with example usage: obj.test_linear() without return types