Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_image_without_alpha(self, image_path):
image = Image.open(image_path)
assert not helpers.image_have_alpha(image)
def test_image_with_alpha(self):
image = Image.open("test/images/alpha.png")
assert helpers.image_have_alpha(image)