class_docstr: Tests for the high-level API of Yellowbrick and base classes
class_docstr_tok: ["Tests","for","the","high-level","API","of","Yellowbrick","and","base","classes"]
docstr: Test the size property on the base Visualizer
code: def test_size_property(self):
      """
      Test the size property on the base Visualizer
      """
      fig = plt.figure(figsize=(1, 2))
      viz = Visualizer()
  
      assert viz._size is None
      assert viz.size is not None
  
      fsize = fig.get_size_inches() * fig.get_dpi()
      assert all(viz.size) == all(fsize)
  
      viz.size = (1080, 720)
      assert viz._size == (1080, 720)
      assert viz.size == (1080, 720)
  
      fsize = fig.get_size_inches() * fig.get_dpi()
      assert all(viz.size) == all(fsize)
  
imports: import pytest
  import matplotlib.pyplot
  from yellowbrick.base import *
  from yellowbrick.base import VisualizerGrid
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.exceptions import YellowbrickWarning
  from yellowbrick.exceptions import YellowbrickValueError
  from unittest.mock import patch
  from unittest.mock import MagicMock
  from tests.rand import RandomVisualizer
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.svm import LinearSVC
  from sklearn.datasets import make_classification
label_desc: Use image node_id 3 for calling the TestBaseClasses obj's underlying member method code with example usage: obj.test_size_property() without return types