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

Method test_set_option

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

Source from the content-addressed store, hash-verified

332 eq(_warn.call_count, 4)
333
334 def test_set_option(self):
335 conf = self.mock_config()
336
337 conf.SetOption('main', 'Foo', 'bar', 'newbar')
338 self.assertEqual(conf.GetOption('main', 'Foo', 'bar'), 'newbar')
339
340 def test_get_section_list(self):
341 conf = self.mock_config()

Callers

nothing calls this directly

Calls 4

mock_configMethod · 0.95
GetOptionMethod · 0.80
SetOptionMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected