class_docstr: Test the JointPlot visualizer without histograms
class_docstr_tok: ["Test","the","JointPlot","visualizer","without","histograms"]
docstr: Test correlation is correctly computed
docstr_tok: ["Test","correlation","is","correctly","computed"]
code: def test_correlation(self, mplt):
      """
      Test correlation is correctly computed
      """
      x = self.discrete.X[:, 0]
      y = self.discrete.X[:, 1]
  
      cases = (
          ("pearson", -0.3847799883805261),
          ("spearman", -0.37301201472324463),
          ("covariance", -0.5535440619953924),
          ("kendalltau", -0.2504201680672269),
      )
  
      for alg, expected in cases:
          oz = JointPlot(hist=False, correlation=alg, columns=None)
          oz.ax = MagicMock()
          oz.fit(x, y)
  
          assert hasattr(oz, "corr_")
          assert oz.corr_ == pytest.approx(
              expected
          ), "{} not computed correctly".format(alg)
  
imports: import sys
  import pytest
  import numpy
  from functools import partial
  from unittest.mock import patch, MagicMock
  from sklearn.datasets import make_classification, make_regression
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.features.jointplot import *
  from ..fixtures import Dataset
label_desc: Use image node_id 6 for calling the TestJointPlotNoHistogram obj's underlying member method code with example usage: obj.test_correlation(mplt) without return types