MCPcopy Create free account
hub / github.com/python/cpython / test_get_theme_dict

Method test_get_theme_dict

Lib/idlelib/idle_test/test_config.py:375–385  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

373 'background': '#171717'})
374
375 def test_get_theme_dict(self):
376 # TODO: finish.
377 conf = self.mock_config()
378
379 # These two should be the same
380 self.assertEqual(
381 conf.GetThemeDict('default', 'IDLE Classic'),
382 conf.GetThemeDict('user', 'IDLE Classic'))
383
384 with self.assertRaises(config.InvalidTheme):
385 conf.GetThemeDict('bad', 'IDLE Classic')
386
387 def test_get_current_theme_and_keys(self):
388 conf = self.mock_config()

Callers

nothing calls this directly

Calls 4

mock_configMethod · 0.95
GetThemeDictMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected