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

Method test_configure_format

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

Source from the content-addressed store, hash-verified

518 self.checkReliefParam(widget, 'buttonuprelief')
519
520 def test_configure_format(self):
521 widget = self.create()
522 self.checkParam(widget, 'format', '%2f')
523 self.checkParam(widget, 'format', '%2.2f')
524 self.checkParam(widget, 'format', '%.2f')
525 self.checkParam(widget, 'format', '%2.f')
526 self.checkInvalidParam(widget, 'format', '%2e-1f')
527 self.checkInvalidParam(widget, 'format', '2.2')
528 self.checkInvalidParam(widget, 'format', '%2.-2f')
529 self.checkParam(widget, 'format', '%-2.02f')
530 self.checkParam(widget, 'format', '% 2.02f')
531 self.checkParam(widget, 'format', '% -2.200f')
532 self.checkParam(widget, 'format', '%09.200f')
533 self.checkInvalidParam(widget, 'format', '%d')
534
535 def test_configure_from(self):
536 widget = self.create()

Callers

nothing calls this directly

Calls 3

createMethod · 0.95
checkParamMethod · 0.80
checkInvalidParamMethod · 0.80

Tested by

no test coverage detected