コード例 #1
0
ファイル: image.py プロジェクト: stephcyrille/cubane
 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')))
コード例 #2
0
ファイル: image.py プロジェクト: stephcyrille/cubane
 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')))
コード例 #3
0
ファイル: image.py プロジェクト: stephcyrille/cubane
 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')))