class_docstr: Test ClassBalance visualizer
class_docstr_tok: ["Test","ClassBalance","visualizer"]
docstr: Test binary classification in balance mode
docstr_tok: ["Test","binary","classification","in","balance","mode"]
code: def test_binary_balance(self):
      """
      Test binary classification in balance mode
      """
      dataset = make_fixture(binary=True, split=False)
  
      oz = ClassBalance()
      assert oz.fit(dataset.y) is oz
      assert oz._mode == BALANCE
  
      # oz.finalize()
      self.assert_images_similar(oz)
  
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 4 for calling the TestClassBalance obj's underlying member method code with example usage: obj.test_binary_balance() without return types