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

Method test_box

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

Source from the content-addressed store, hash-verified

1141 self.check_itemconfigure('selectforeground', '#654321')
1142
1143 def test_box(self):
1144 lb = self.create()
1145 lb.insert(0, *('el%d' % i for i in range(8)))
1146 lb.pack()
1147 self.assertIsBoundingBox(lb.bbox(0))
1148 self.assertIsNone(lb.bbox(-1))
1149 self.assertIsNone(lb.bbox(10))
1150 self.assertRaises(TclError, lb.bbox, 'noindex')
1151 self.assertRaises(TclError, lb.bbox, None)
1152 self.assertRaises(TypeError, lb.bbox)
1153 self.assertRaises(TypeError, lb.bbox, 0, 1)
1154
1155 def test_curselection(self):
1156 lb = self.create()

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected