Esempio n. 1
0
 def test_should_return_false_if_image_is_png_with_transparency(self):
     self.assertFalse(
         is_png_without_transparency(
             self.get_test_image_path('test_with_transparency.png')))
Esempio n. 2
0
 def test_should_return_true_if_image_is_png_but_without_transparency(self):
     self.assertTrue(
         is_png_without_transparency(self.get_test_image_path('test.png')))
Esempio n. 3
0
 def test_should_return_false_if_image_is_not_an_image_to_begin_with(self):
     self.assertFalse(
         is_png_without_transparency(self.get_test_image_path('test.txt')))