code: def test_get_set_saved(self):
      # test the getter method get_saved
      # test the setter method set_saved
      # indirectly test check_saved
      d = self.delegator
  
      self.assertTrue(d.get_saved())
      self.text.insert("insert", "a")
      self.assertFalse(d.get_saved())
      d.saved_change_hook = Mock()
  
      d.set_saved(True)
      self.assertEqual(d.pointer, d.saved)
      self.assertTrue(d.saved_change_hook.called)
  
      d.set_saved(False)
      self.assertEqual(d.saved, -1)
      self.assertTrue(d.saved_change_hook.called)
  
file_path: cpython/Lib/idlelib/idle_test/test_undo.py
imports: from idlelib.undo import UndoDelegator
  import unittest
  from test.support import requires
  from unittest.mock import Mock
  from tkinter import Text, Tk
  from idlelib.percolator import Percolator
label_desc: Use image node_id 8 for calling the UndoDelegatorTest obj's underlying member method code with example usage: obj.test_get_set_saved() without return types