def test_mozjpeg_should_not_run_for_png(self): optimizer = MozjpegOptimizer(self.get_context()) self.assertFalse(optimizer.should_run('png', None))
def test_mozjpeg_should_not_run_for_png(self): optimizer = MozjpegOptimizer(self.get_context()) self.assertFalse(optimizer.should_run('png', None))
def test_mozjpeg_should_run_for_jpeg(self): optimizer = MozjpegOptimizer(self.get_context()) self.assertTrue(optimizer.should_run('jpeg', None))
def test_mozjpeg_should_run_for_jpeg(self): optimizer = MozjpegOptimizer(self.get_context()) self.assertTrue(optimizer.should_run('jpeg', None))