#NEWLINE# @ pytest . fixture #NEWLINE# def bad_datas( self , value ) : #NEWLINE# #INDENT# val = ( value * 3 ) #NEWLINE# def _alter_byte( byte_string , pos ) : #NEWLINE# #INDENT# old_val = indexbytes ( byte_string , pos ) #NEWLINE# new_byte = int2byte ( ( old_val + ( 1 % 255 ) ) ) #NEWLINE# return ( ( byte_string [ : pos ] + new_byte ) + byte_string [ ( pos + 1 ) : ] ) #NEWLINE# #UNINDENT# return ( _alter_byte ( val , i ) for i in xrange ( len ( value ) ) )