(self)
| 161 | self.assertRaises(RuntimeError, font.names) |
| 162 | |
| 163 | def test_nametofont(self): |
| 164 | self.assertRaises(RuntimeError, font.nametofont, fontname) |
| 165 | root = tkinter.Tk() |
| 166 | testfont = font.nametofont(fontname) |
| 167 | self.assertIsInstance(testfont, font.Font) |
| 168 | self.assertEqual(testfont.name, fontname) |
| 169 | root.destroy() |
| 170 | tkinter.NoDefaultRoot() |
| 171 | self.assertRaises(RuntimeError, font.nametofont, fontname) |
| 172 | |
| 173 | |
| 174 | class TestModule(unittest.TestCase): |
nothing calls this directly
no test coverage detected