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

Method test_getboolean

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

Source from the content-addressed store, hash-verified

1365 root.destroy()
1366
1367 def test_getboolean(self):
1368 self.assertRaises(RuntimeError, tkinter.getboolean, '1')
1369 root = tkinter.Tk()
1370 self.assertIs(tkinter.getboolean('1'), True)
1371 self.assertRaises(ValueError, tkinter.getboolean, 'yea')
1372 root.destroy()
1373 tkinter.NoDefaultRoot()
1374 self.assertRaises(RuntimeError, tkinter.getboolean, '1')
1375
1376 def test_mainloop(self):
1377 self.assertRaises(RuntimeError, tkinter.mainloop)

Callers

nothing calls this directly

Calls 4

destroyMethod · 0.95
assertRaisesMethod · 0.45
assertIsMethod · 0.45
getbooleanMethod · 0.45

Tested by

no test coverage detected