class_docstr: Test pasting into widgets that allow pasting.
  
  On X11, replacing selections requires tk fix.
docstr: Test pasting into a spinbox with and without a selection.
code: def test_paste_spin(self):
      "Test pasting into a spinbox with and without a selection."
      # See note above for entry.
      spin = self.spin
      for end, ans in (0, "onetwo"), ("end", "two"):
          with self.subTest(end=end, ans=ans):
              spin.delete(0, "end")
              spin.insert(0, "one")
              spin.selection("range", 0, end)  # see note
              spin.event_generate("<<Paste>>")
              self.assertEqual(spin.get(), ans)
  
file_path: cpython/Lib/idlelib/idle_test/test_editmenu.py
imports: from test.support import requires
  import tkinter
  from tkinter import ttk
  import unittest
  from idlelib import pyshell
label_desc: Use image node_id 5 for calling the PasteTest obj's underlying member method code with example usage: obj.test_paste_spin() without return types