class_docstr: Test pasting into widgets that allow pasting.
  
  On X11, replacing selections requires tk fix.
docstr: Test pasting into an entry with and without a selection.
code: def test_paste_entry(self):
      "Test pasting into an entry with and without a selection."
      # Generated <<Paste>> fails for tk entry without empty select
      # range for 'no selection'.  Live widget works fine.
      for entry in self.entry, self.tentry:
          for end, ans in (0, "onetwo"), ("end", "two"):
              with self.subTest(entry=entry, end=end, ans=ans):
                  entry.delete(0, "end")
                  entry.insert(0, "one")
                  entry.select_range(0, end)
                  entry.event_generate("<<Paste>>")
                  self.assertEqual(entry.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 4 for calling the PasteTest obj's underlying member method code with example usage: obj.test_paste_entry() without return types