(self)
| 329 | self.checkIntegerParam(widget, 'height', 100, -100, 0, conv=conv) |
| 330 | |
| 331 | def test_configure_image(self): |
| 332 | widget = self.create() |
| 333 | image = tkinter.PhotoImage(master=self.root, name='image1') |
| 334 | self.checkParam(widget, 'image', image, conv=str) |
| 335 | if tk_version < (8, 7): |
| 336 | errmsg = 'image "spam" doesn\'t exist' |
| 337 | else: |
| 338 | errmsg = 'image "spam" does not exist' |
| 339 | with self.assertRaises(tkinter.TclError) as cm: |
| 340 | widget['image'] = 'spam' |
| 341 | if errmsg is not None: |
| 342 | self.assertEqual(str(cm.exception), errmsg) |
| 343 | with self.assertRaises(tkinter.TclError) as cm: |
| 344 | widget.configure({'image': 'spam'}) |
| 345 | if errmsg is not None: |
| 346 | self.assertEqual(str(cm.exception), errmsg) |
| 347 | |
| 348 | def test_configure_menu(self): |
| 349 | widget = self.create() |
nothing calls this directly
no test coverage detected