def test_desaturate():
 out1 = utils.desaturate('red', 0.5)
 assert_equal(out1, (0.75, 0.25, 0.25))
 out2 = utils.desaturate('#00FF00', 0.5)
 assert_equal(out2, (0.25, 0.75, 0.25))
 out3 = utils.desaturate((0, 0, 1), 0.5)
 assert_equal(out3, (0.25, 0.25, 0.75))
 out4 = utils.desaturate('red', 0.5)
 assert_equal(out4, (0.75, 0.25, 0.25))

def test_desaturate ( ) : out1 = utils . desaturate ( 'red' , 0.5 ) assert_equal ( out1 , ( 0.75 , 0.25 , 0.25 ) ) out2 = utils . desaturate ( '#00FF00' , 0.5 ) assert_equal ( out2 , ( 0.25 , 0.75 , 0.25 ) ) out3 = utils . desaturate ( ( 0 , 0 , 1 ) , 0.5 ) assert_equal ( out3 , ( 0.25 , 0.25 , 0.75 ) ) out4 = utils . desaturate ( 'red' , 0.5 ) assert_equal ( out4 , ( 0.75 , 0.25 , 0.25 ) )
test color desaturation .