def test_pngquant_should_run_for_png(self): optimizer = PngquantOptimizer(self.get_context()) self.assertTrue(optimizer.should_run('png', None))
def test_pngquant_should_not_run_for_jpeg(self): optimizer = PngquantOptimizer(self.get_context()) self.assertFalse(optimizer.should_run('jpeg', None))