(self)
| 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') |
nothing calls this directly
no test coverage detected