#NEWLINE# def test_update_with_availability_zone_too_long( self ) : #NEWLINE# #INDENT# test_metadata = { #NEWLINE# #INDENT# 'aggregate' : { #NEWLINE# #INDENT# 'availability_zone' : ( 'x' * 256 ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( test_metadata . bad_request , self . controller . update , self . req , '2' , body = test_metadata )