def test_optipng_should_run_for_png(self): optimizer = OptipngOptimizer(self.get_context()) self.assertTrue(optimizer.should_run('png', None))
def test_optipng_should_not_run_for_jpeg(self): optimizer = OptipngOptimizer(self.get_context()) self.assertFalse(optimizer.should_run('jpeg', None))