#NEWLINE# def test_ports_vnic_type_list( self ) : #NEWLINE# #INDENT# cfg . CONF . set_default ( 'allow_overlapping_ips' , True ) #NEWLINE# vnic_arg = { #NEWLINE# #INDENT# portbindings . VNIC_TYPE : port2 . vnic_type , #NEWLINE# #UNINDENT# } #NEWLINE# with self . port ( name = 'name1' , arg_list = ( portbindings . VNIC_TYPE , ) , ** vnic_arg ) as port1 , self . port ( name = 'name2' ) as port2 , self . port ( name = 'name3' , arg_list = ( portbindings . VNIC_TYPE , ) , ** vnic_arg ) as port3 : #NEWLINE# #INDENT# self . _test_list_resources ( 'port' , ( port1 , port2 , port3 ) , query_params = ( '%s=%s' % ( portbindings . VNIC_TYPE , self . vnic_type ) ) )