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

Method test_custom_name

Lib/idlelib/idle_test/test_configdialog.py:388–400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

386 eq(d.paint_theme_sample.called, 3)
387
388 def test_custom_name(self):
389 d = self.page
390
391 # If no selections, doesn't get added.
392 d.customlist.SetMenu([], '- no custom themes -')
393 self.assertNotIn('Theme', mainpage)
394 self.assertEqual(d.paint_theme_sample.called, 0)
395
396 # Custom name selected.
397 changes.clear()
398 d.customlist.SetMenu(['a', 'b', 'c'], 'c')
399 self.assertEqual(mainpage, {'Theme': {'name': 'c'}})
400 self.assertEqual(d.paint_theme_sample.called, 1)
401
402 def test_color(self):
403 d = self.page

Callers

nothing calls this directly

Calls 4

SetMenuMethod · 0.80
assertNotInMethod · 0.80
assertEqualMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected