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

Method test_load_font_cfg

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

Source from the content-addressed store, hash-verified

124 changes.clear()
125
126 def test_load_font_cfg(self):
127 # Leave widget load test to human visual check.
128 # TODO Improve checks when add IdleConf.get_font_values.
129 tracers.detach()
130 d = self.page
131 d.font_name.set('Fake')
132 d.font_size.set('1')
133 d.font_bold.set(True)
134 d.set_samples.called = 0
135 d.load_font_cfg()
136 self.assertNotEqual(d.font_name.get(), 'Fake')
137 self.assertNotEqual(d.font_size.get(), '1')
138 self.assertFalse(d.font_bold.get())
139 self.assertEqual(d.set_samples.called, 1)
140 tracers.attach()
141
142 def test_fontlist_key(self):
143 # Up and Down keys should select a new font.

Callers

nothing calls this directly

Calls 8

load_font_cfgMethod · 0.80
assertNotEqualMethod · 0.80
assertFalseMethod · 0.80
detachMethod · 0.45
setMethod · 0.45
getMethod · 0.45
assertEqualMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected