(self)
| 320 | self.assertEqual(m.call_count, len(conf.userCfg)) |
| 321 | |
| 322 | def test_get_option(self): |
| 323 | conf = self.mock_config() |
| 324 | |
| 325 | eq = self.assertEqual |
| 326 | eq(conf.GetOption('main', 'EditorWindow', 'width'), '80') |
| 327 | eq(conf.GetOption('main', 'EditorWindow', 'width', type='int'), 80) |
| 328 | with mock.patch('idlelib.config._warn') as _warn: |
| 329 | eq(conf.GetOption('main', 'EditorWindow', 'font', type='int'), None) |
| 330 | eq(conf.GetOption('main', 'EditorWindow', 'NotExists'), None) |
| 331 | eq(conf.GetOption('main', 'EditorWindow', 'NotExists', default='NE'), 'NE') |
| 332 | eq(_warn.call_count, 4) |
| 333 | |
| 334 | def test_set_option(self): |
| 335 | conf = self.mock_config() |
nothing calls this directly
no test coverage detected