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

Method test_families

Lib/test/test_tkinter/test_font.py:136–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134class DefaultRootTest(AbstractDefaultRootTest, unittest.TestCase):
135
136 def test_families(self):
137 self.assertRaises(RuntimeError, font.families)
138 root = tkinter.Tk()
139 families = font.families()
140 self.assertIsInstance(families, tuple)
141 self.assertTrue(families)
142 for family in families:
143 self.assertIsInstance(family, str)
144 self.assertTrue(family)
145 root.destroy()
146 tkinter.NoDefaultRoot()
147 self.assertRaises(RuntimeError, font.families)
148
149 def test_names(self):
150 self.assertRaises(RuntimeError, font.names)

Callers

nothing calls this directly

Calls 4

destroyMethod · 0.95
assertIsInstanceMethod · 0.80
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected