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

Method test_names

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

Source from the content-addressed store, hash-verified

102 self.assertTrue(family)
103
104 def test_names(self):
105 names = font.names(self.root)
106 self.assertIsInstance(names, tuple)
107 self.assertTrue(names)
108 for name in names:
109 self.assertIsInstance(name, str)
110 self.assertTrue(name)
111 self.assertIn(fontname, names)
112
113 def test_nametofont(self):
114 testfont = font.nametofont(fontname, root=self.root)

Callers

nothing calls this directly

Calls 4

assertIsInstanceMethod · 0.80
assertTrueMethod · 0.80
assertInMethod · 0.80
namesMethod · 0.45

Tested by

no test coverage detected