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

Method test_configure_use

Lib/test/test_tkinter/test_widgets.py:103–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.assertEqual(widget2['screen'], display)
102
103 def test_configure_use(self):
104 widget = self.create()
105 self.assertEqual(widget['use'], '')
106 parent = self.create(container=True)
107 wid = hex(parent.winfo_id())
108 with self.subTest(wid=wid):
109 widget2 = self.create(use=wid)
110 self.assertEqual(widget2['use'], wid)
111
112
113@add_configure_tests(StandardOptionsTests)

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
winfo_idMethod · 0.80
assertEqualMethod · 0.45
subTestMethod · 0.45

Tested by

no test coverage detected