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

Method test_bbox

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

Source from the content-addressed store, hash-verified

762 self.checkEnumParam(widget, 'wrap', 'char', 'none', 'word')
763
764 def test_bbox(self):
765 widget = self.create()
766 self.assertIsBoundingBox(widget.bbox('1.1'))
767 self.assertIsNone(widget.bbox('end'))
768 self.assertRaises(tkinter.TclError, widget.bbox, 'noindex')
769 self.assertRaises(tkinter.TclError, widget.bbox, None)
770 self.assertRaises(TypeError, widget.bbox)
771 self.assertRaises(TypeError, widget.bbox, '1.1', 'end')
772
773
774@add_configure_tests(PixelSizeTests, StandardOptionsTests)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected