#NEWLINE# def test_validate_tags_throws_on_long_value( self ) : #NEWLINE# #INDENT# value = ( 'v' * 257 ) #NEWLINE# self . params . tags = [ { #NEWLINE# #INDENT# 'Key' : 'k1' , #NEWLINE# 'Value' : self , #NEWLINE# #UNINDENT# } ] #NEWLINE# with self . assertRaisesRegexp ( ValueError , 'Tag Value cannot be longer than {0} characters.' . format ( MAX_TAG_VALUE_LENGTH ) ) : #NEWLINE# #INDENT# validate_tags ( self . params )