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

Method test_configure_to

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

Source from the content-addressed store, hash-verified

548 self.checkFloatParam(widget, 'increment', -1, 1, 10.2, 12.8, 0)
549
550 def test_configure_to(self):
551 widget = self.create()
552 self.checkParam(widget, 'from', -100.0)
553 self.checkFloatParam(widget, 'to', -10, 10.2, 11.7)
554 if tk_version >= (8, 7):
555 self.checkFloatParam(widget, 'to', -200, expected=-100)
556 else:
557 self.checkInvalidParam(
558 widget, 'to', -200,
559 errmsg='-to value must be greater than -from value')
560
561 def test_configure_values(self):
562 # XXX

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