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

Method test_transparency

Lib/test/test_tkinter/test_images.py:651–658  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

649
650
651 def test_transparency(self):
652 image = self.create()
653 self.assertEqual(image.transparency_get(0, 0), True)
654 self.assertEqual(image.transparency_get(4, 6), False)
655 image.transparency_set(4, 6, True)
656 self.assertEqual(image.transparency_get(4, 6), True)
657 image.transparency_set(4, 6, False)
658 self.assertEqual(image.transparency_get(4, 6), False)
659
660
661if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

transparency_getMethod · 0.80
transparency_setMethod · 0.80
createMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected