예제 #1
0
 def test_pngquant_should_run_for_png(self):
     optimizer = PngquantOptimizer(self.get_context())
     self.assertTrue(optimizer.should_run('png', None))
 def test_pngquant_should_run_for_png(self):
     optimizer = PngquantOptimizer(self.get_context())
     self.assertTrue(optimizer.should_run('png', None))
예제 #3
0
 def test_pngquant_should_not_run_for_jpeg(self):
     optimizer = PngquantOptimizer(self.get_context())
     self.assertFalse(optimizer.should_run('jpeg', None))
 def test_pngquant_should_not_run_for_jpeg(self):
     optimizer = PngquantOptimizer(self.get_context())
     self.assertFalse(optimizer.should_run('jpeg', None))