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

Method test_activate

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

Source from the content-addressed store, hash-verified

1284 fullname='orientation', allow_empty=True)
1285
1286 def test_activate(self):
1287 sb = self.create()
1288 for e in ('arrow1', 'slider', 'arrow2'):
1289 sb.activate(e)
1290 self.assertEqual(sb.activate(), e)
1291 sb.activate('')
1292 self.assertIsNone(sb.activate())
1293 self.assertRaises(TypeError, sb.activate, 'arrow1', 'arrow2')
1294
1295 def test_set(self):
1296 sb = self.create()

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
assertIsNoneMethod · 0.80
activateMethod · 0.45
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected