class_docstr: Meta Test: ImageComparison test cases
class_docstr_tok: ["Meta","Test",":","ImageComparison","test","cases"]
docstr: Test the image comparison initialization and properties
docstr_tok: ["Test","the","image","comparison","initialization","and","properties"]
code: def test_image_comparison(self):
      """
      Test the image comparison initialization and properties
      """
  
      def inner_assertion_function(ax):
          stack = inspect.stack()
          return ImageComparison(stack, ax=ax)
  
      ax = MagicMock()
      compare = inner_assertion_function(ax)
      assert compare.ax is ax
      assert compare.test_func_name == "test_image_comparison"
      assert compare.test_module_path == "test_meta"
  
      # Must use os.path.join for Windows/POSIX compatibility
      assert compare.actual_image_path.endswith(
          os.path.join(
              "tests",
              "actual_images",
              "test_meta",
              "test_image_comparison.png",
          )
      )
      assert compare.baseline_image_path.endswith(
          os.path.join(
              "tests",
              "baseline_images",
              "test_meta",
              "test_image_comparison.png",
          )
      )
  
imports: import os
  import pytest
  import inspect
  import matplotlib
  from tests.rand import RandomVisualizer
  from unittest.mock import MagicMock, patch
  from tests.base import ACTUAL_IMAGES, BASELINE_IMAGES
  from tests.base import VisualTestCase, ImageComparison
  from yellowbrick.exceptions import ImageComparisonFailure
label_desc: Use image node_id 1 for calling the TestMetaImageComparison obj's underlying member method code with example usage: obj.test_image_comparison() and returns: ImageComparison