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

Method test_bold_toggle

Lib/idlelib/idle_test/test_configdialog.py:200–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 self.assertEqual(d.font_size.get(), '40')
199
200 def test_bold_toggle(self):
201 # Click on checkbutton should invert it.
202 d = self.page
203 d.font_bold.set(False)
204 d.bold_toggle.invoke()
205 self.assertTrue(d.font_bold.get())
206 d.bold_toggle.invoke()
207 self.assertFalse(d.font_bold.get())
208
209 def test_font_set(self):
210 # Test that setting a font Variable results in 3 provisional

Callers

nothing calls this directly

Calls 5

assertTrueMethod · 0.80
assertFalseMethod · 0.80
setMethod · 0.45
invokeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected