예제 #1
0
 def test_optipng_should_run_for_png(self):
     optimizer = OptipngOptimizer(self.get_context())
     self.assertTrue(optimizer.should_run('png', None))
 def test_optipng_should_run_for_png(self):
     optimizer = OptipngOptimizer(self.get_context())
     self.assertTrue(optimizer.should_run('png', None))
예제 #3
0
 def test_optipng_should_not_run_for_jpeg(self):
     optimizer = OptipngOptimizer(self.get_context())
     self.assertFalse(optimizer.should_run('jpeg', None))
 def test_optipng_should_not_run_for_jpeg(self):
     optimizer = OptipngOptimizer(self.get_context())
     self.assertFalse(optimizer.should_run('jpeg', None))