def test_rotate():
 assert (rotate('#000', 45) == '#000')
 assert (rotate('#fff', 45) == '#fff')
 assert (rotate('#811', 45) == '#886a11')
 assert (rotate('#8a8', 360) == '#8a8')
 assert (rotate('#8a8', 0) == '#8a8')
 assert (rotate('#8a8', (-360)) == '#8a8')

def test_rotate ( ) : assert ( rotate ( '#000' , 45 ) == '#000' ) assert ( rotate ( '#fff' , 45 ) == '#fff' ) assert ( rotate ( '#811' , 45 ) == '#886a11' ) assert ( rotate ( '#8a8' , 360 ) == '#8a8' ) assert ( rotate ( '#8a8' , 0 ) == '#8a8' ) assert ( rotate ( '#8a8' , ( - 360 ) ) == '#8a8' )
test color rotation function .