#NEWLINE# def test_port_create_portinfo_non_admin( self ) : #NEWLINE# #INDENT# profile_arg = { #NEWLINE# #INDENT# portbindings . PROFILE : { #NEWLINE# #INDENT# 'dummy' : 'dummy' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# with self . network ( set_context = True , tenant_id = 'test' ) as net1 : #NEWLINE# #INDENT# with self . subnet ( network = net1 ) as subnet1 : #NEWLINE# #INDENT# with self . port ( subnet = subnet1 , set_context = True , tenant_id = 'test' ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# with self . port ( subnet = subnet1 , expected_res_status = 403 , arg_list = ( portbindings . PROFILE , ) , set_context = True , tenant_id = 'test' , ** profile_arg ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# except exc . HTTPClientError : #NEWLINE# #INDENT# pass