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

Method test_bbox

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

Source from the content-addressed store, hash-verified

585 self.checkBooleanParam(widget, 'wrap')
586
587 def test_bbox(self):
588 widget = self.create()
589 self.assertIsBoundingBox(widget.bbox(0))
590 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex')
591 self.assertRaises(tkinter.TclError, widget.bbox, None)
592 self.assertRaises(TypeError, widget.bbox)
593 self.assertRaises(TypeError, widget.bbox, 0, 1)
594
595 def test_selection_methods(self):
596 widget = self.create()

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
assertIsBoundingBoxMethod · 0.80
bboxMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected