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

Method test_configure_startline

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

Source from the content-addressed store, hash-verified

715 self.checkPixelsParam(widget, 'spacing3', 20, 21.4, 22.6, -10, '0.5c')
716
717 def test_configure_startline(self):
718 widget = self.create()
719 text = '\n'.join('Line %d' for i in range(100))
720 widget.insert('end', text)
721 self.checkParam(widget, 'startline', 200, expected='')
722 self.checkParam(widget, 'startline', -10, expected='')
723 self.checkInvalidParam(widget, 'startline', 'spam',
724 errmsg='expected integer but got "spam"')
725 self.checkParam(widget, 'startline', 10)
726 self.checkParam(widget, 'endline', 50)
727 self.checkInvalidParam(widget, 'startline', 70,
728 errmsg='-startline must be less than or equal to -endline')
729
730 def test_configure_state(self):
731 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