class_docstr: Test ClassBalance visualizer
class_docstr_tok: ["Test","ClassBalance","visualizer"]
docstr: An exception is raised if X and y are put into the visualizer
docstr_tok: ["An","exception","is","raised","if","X","and","y","are","put","into","the","visualizer"]
code: def test_signature_exception(self):
      """
      An exception is raised if X and y are put into the visualizer
      """
      oz = ClassBalance()
      dataset = make_fixture(split=False)
  
      message = "fit has changed to only require a 1D array, y"
      with pytest.raises(YellowbrickValueError, match=message):
          oz.fit(dataset.X, dataset.y)
  
imports: import pytest
  from yellowbrick.target.class_balance import *
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.exceptions import YellowbrickValueError
  from tests.fixtures import Dataset, Split
  from tests.base import VisualTestCase
  from sklearn.datasets import make_classification
  from sklearn.model_selection import train_test_split
label_desc: Use image node_id 1 for calling the TestClassBalance obj's underlying member method code with example usage: obj.test_signature_exception() without return types