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

Method test_setdelegate

Lib/idlelib/idle_test/test_colorizer.py:198–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 del self.color
197
198 def test_setdelegate(self):
199 # Called in setUp when filter is attached to percolator.
200 color = self.color
201 self.assertIsInstance(color.delegate, colorizer.Delegator)
202 # It is too late to mock notify_range, so test side effect.
203 self.assertEqual(self.root.tk.call(
204 'after', 'info', color.after_id)[1], 'timer')
205
206 def test_LoadTagDefs(self):
207 highlight = partial(config.idleConf.GetHighlight, theme='IDLE Classic')

Callers

nothing calls this directly

Calls 3

assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected