#NEWLINE# def get_image_rotate_cases( self ) : #NEWLINE# #INDENT# cases = image_test . get_image_rotate_cases ( ) #NEWLINE# m = dict ( expand = 'expand' , format = 'fmt' , optimize = 'opt' , quality = 'q' ) #NEWLINE# for ( i , case ) in enumerate ( cases ) : #NEWLINE# #INDENT# path = ( '/test/data/%s' % os . path . basename ( case [ 'source_path' ] ) ) #NEWLINE# cases [ i ] [ 'source_query_params' ] = dict ( op = 'rotate' , url = self . get_url ( path ) , deg = case [ 'degree' ] ) #NEWLINE# for k in m . keys ( ) : #NEWLINE# #INDENT# if ( k in case ) : #NEWLINE# #INDENT# cases [ i ] [ 'source_query_params' ] [ m . get ( k ) ] = case [ k ] #NEWLINE# #UNINDENT# #UNINDENT# cases [ i ] [ 'content_type' ] = self . _format_to_content_type ( case . get ( 'format' ) ) #NEWLINE# #UNINDENT# return cases