(self)
| 217 | |
| 218 | |
| 219 | def test_initialization(self): |
| 220 | self.assertRaises(tkinter.TclError, |
| 221 | ttk.OptionMenu, self.root, self.textvar, invalid='thing') |
| 222 | |
| 223 | optmenu = ttk.OptionMenu(self.root, self.textvar, 'b', 'a', 'b') |
| 224 | self.assertEqual(optmenu._variable.get(), 'b') |
| 225 | |
| 226 | self.assertTrue(optmenu['menu']) |
| 227 | self.assertTrue(optmenu['textvariable']) |
| 228 | |
| 229 | optmenu.destroy() |
| 230 | |
| 231 | |
| 232 | def test_menu(self): |
nothing calls this directly
no test coverage detected