#NEWLINE# def test_port_vnic_type_non_admin( self ) : #NEWLINE# #INDENT# with self . network ( set_context = True , tenant_id = 'test' ) as net1 : #NEWLINE# #INDENT# with self . subnet ( network = net1 ) as subnet1 : #NEWLINE# #INDENT# vnic_arg = { #NEWLINE# #INDENT# portbindings . VNIC_TYPE : self . vnic_type , #NEWLINE# #UNINDENT# } #NEWLINE# with self . port ( subnet = subnet1 , expected_res_status = httplib . CREATED , arg_list = ( portbindings . VNIC_TYPE , ) , set_context = True , tenant_id = 'test' , ** vnic_arg ) as port : #NEWLINE# #INDENT# self . _check_response_portbindings_vnic_type ( port [ 'port' ] )