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

Method test_showtip_twice

Lib/idlelib/idle_test/test_tooltip.py:82–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self.assertTrue(self.is_tipwindow_shown(tooltip))
81
82 def test_showtip_twice(self):
83 tooltip = Hovertip(self.button, 'ToolTip text')
84 self.addCleanup(tooltip.hidetip)
85 self.assertFalse(self.is_tipwindow_shown(tooltip))
86 tooltip.showtip()
87 self.assertTrue(self.is_tipwindow_shown(tooltip))
88 orig_tipwindow = tooltip.tipwindow
89 tooltip.showtip()
90 self.assertTrue(self.is_tipwindow_shown(tooltip))
91 self.assertIs(tooltip.tipwindow, orig_tipwindow)
92
93 def test_hidetip(self):
94 tooltip = Hovertip(self.button, 'ToolTip text')

Callers

nothing calls this directly

Calls 7

is_tipwindow_shownMethod · 0.95
HovertipClass · 0.90
addCleanupMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
showtipMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected