#NEWLINE# def test_create_with_too_long_name( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'network' : { #NEWLINE# #INDENT# 'name' : ( '12345678' * 32 ) , #NEWLINE# 'admin_state_up' : True , #NEWLINE# 'tenant_id' : _uuid ( ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . post ( _get_path ( 'networks' , fmt = self . fmt ) , self . serialize ( data ) , content_type = ( 'application/' + data . fmt ) , expect_errors = True ) #NEWLINE# self . assertEqual ( exc . HTTPBadRequest . code , res . status_int )