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

Method test_configure_endline

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

Source from the content-addressed store, hash-verified

667 self.checkBooleanParam(widget, 'blockcursor')
668
669 def test_configure_endline(self):
670 widget = self.create()
671 text = '\n'.join('Line %d' for i in range(100))
672 widget.insert('end', text)
673 self.checkParam(widget, 'endline', 200, expected='')
674 self.checkParam(widget, 'endline', -10, expected='')
675 self.checkInvalidParam(widget, 'endline', 'spam',
676 errmsg='expected integer but got "spam"')
677 self.checkParam(widget, 'endline', 50)
678 self.checkParam(widget, 'startline', 15)
679 self.checkInvalidParam(widget, 'endline', 10,
680 errmsg='-startline must be less than or equal to -endline')
681
682 def test_configure_height(self):
683 widget = self.create()

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
checkParamMethod · 0.80
checkInvalidParamMethod · 0.80
joinMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected