MCPcopy Index your code
hub / github.com/python/cpython / test_clipboard

Method test_clipboard

Lib/test/test_tkinter/test_misc.py:300–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298 self.assertEqual(root.after_info(), ())
299
300 def test_clipboard(self):
301 root = self.root
302 root.clipboard_clear()
303 root.clipboard_append('Ùñî')
304 self.assertEqual(root.clipboard_get(), 'Ùñî')
305 root.clipboard_append('çōđě')
306 self.assertEqual(root.clipboard_get(), 'Ùñîçōđě')
307 root.clipboard_clear()
308 with self.assertRaises(tkinter.TclError):
309 root.clipboard_get()
310
311 def test_clipboard_astral(self):
312 root = self.root

Callers

nothing calls this directly

Calls 5

clipboard_clearMethod · 0.80
clipboard_appendMethod · 0.80
clipboard_getMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected