class_docstr: Meta Test: ImageComparison test cases
class_docstr_tok: ["Meta","Test",":","ImageComparison","test","cases"]
docstr: Test that image comparison cleans up, saves, and compares
docstr_tok: ["Test","that","image","comparison","cleans","up",",","saves",",","and","compares"]
code: def test_image_comparison_call(
      self, mock_cleanup, mock_save, mock_compare
  ):
      """
      Test that image comparison cleans up, saves, and compares
      """
  
      def inner_assertion_function():
          stack = inspect.stack()
          return ImageComparison(stack, ax=MagicMock())
  
      compare = inner_assertion_function()
      compare()
  
      mock_cleanup.assert_called_once()
      mock_save.assert_called_once()
      mock_compare.assert_called_once()
  
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 2 for calling the TestMetaImageComparison obj's underlying member method code with example usage: obj.test_image_comparison_call(mock_cleanup, mock_save, mock_compare) and returns: ImageComparison