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

Method test_configure_insertwidth

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

Source from the content-addressed store, hash-verified

412 self.checkParam(widget, 'insertborderwidth', 60, expected=expected)
413
414 def test_configure_insertwidth(self):
415 widget = self.create()
416 self.checkPixelsParam(widget, 'insertwidth', 1.3, 3.6, 0.9, '10p')
417 if tk_version < (8, 7):
418 self.checkParam(widget, 'insertwidth', 0, expected=2)
419 self.checkParam(widget, 'insertwidth', 0.1, expected=2)
420 self.checkParam(widget, 'insertwidth', -2, expected=2)
421 else:
422 self.checkPixelsParam(widget, 'insertwidth', 0, 0.1, -2)
423
424 def test_configure_invalidcommand(self):
425 widget = self.create()

Callers

nothing calls this directly

Calls 3

createMethod · 0.95
checkPixelsParamMethod · 0.80
checkParamMethod · 0.80

Tested by

no test coverage detected