code: def test_equality(self):
      font1 = font.Font(root=self.root, name=fontname, exists=True)
      font2 = font.Font(root=self.root, name=fontname, exists=True)
      self.assertIsNot(font1, font2)
      self.assertEqual(font1, font2)
      self.assertNotEqual(font1, font1.copy())
  
      self.assertNotEqual(font1, 0)
      self.assertEqual(font1, ALWAYS_EQ)
  
      root2 = tkinter.Tk()
      self.addCleanup(root2.destroy)
      font3 = font.Font(root=root2, name=fontname, exists=True)
      self.assertEqual(str(font1), str(font3))
      self.assertNotEqual(font1, font3)
  
imports: import unittest
  import tkinter
  from tkinter import font
  from test.support import requires, gc_collect, ALWAYS_EQ
  from test.test_tkinter.support import AbstractTkTest, AbstractDefaultRootTest
label_desc: Use image node_id 6 for calling the FontTest obj's underlying member method code with example usage: obj.test_equality() without return types