(self)
| 77 | image.configure(spam=print) |
| 78 | |
| 79 | def test_iterable_protocol(self): |
| 80 | image = self.create() |
| 81 | self.assertNotIsSubclass(self.image_class, collections.abc.Iterable) |
| 82 | self.assertNotIsSubclass(self.image_class, collections.abc.Container) |
| 83 | self.assertNotIsInstance(image, collections.abc.Iterable) |
| 84 | self.assertNotIsInstance(image, collections.abc.Container) |
| 85 | with self.assertRaisesRegex(TypeError, 'is not iterable'): |
| 86 | iter(image) |
| 87 | with self.assertRaisesRegex(TypeError, 'is not a container or iterable'): |
| 88 | image in image |
| 89 | |
| 90 | |
| 91 | class BitmapImageTest(BaseImageTest, AbstractTkTest, unittest.TestCase): |
nothing calls this directly
no test coverage detected