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

Method test_configure_from

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

Source from the content-addressed store, hash-verified

533 self.checkInvalidParam(widget, 'format', '%d')
534
535 def test_configure_from(self):
536 widget = self.create()
537 self.checkParam(widget, 'to', 100.0)
538 self.checkFloatParam(widget, 'from', -10, 10.2, 11.7)
539 if tk_version >= (8, 7):
540 self.checkFloatParam(widget, 'from', 200, expected=100)
541 else:
542 self.checkInvalidParam(
543 widget, 'from', 200,
544 errmsg='-to value must be greater than -from value')
545
546 def test_configure_increment(self):
547 widget = self.create()

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
checkParamMethod · 0.80
checkFloatParamMethod · 0.80
checkInvalidParamMethod · 0.80

Tested by

no test coverage detected