#NEWLINE# def test_ports_vif_details( self ) : #NEWLINE# #INDENT# plugin = manager . NeutronManager . get_plugin ( ) #NEWLINE# cfg . CONF . set_default ( 'allow_overlapping_ips' , True ) #NEWLINE# with self . port ( ) , self . port ( ) : #NEWLINE# #INDENT# ctx = context . get_admin_context ( ) #NEWLINE# ports = plugin . get_ports ( ctx ) #NEWLINE# self . assertEqual ( len ( ports ) , 2 ) #NEWLINE# for port in ports : #NEWLINE# #INDENT# self . _check_response_portbindings ( port ) #NEWLINE# #UNINDENT# ctx = self . _get_non_admin_context ( ) #NEWLINE# ports = self . _list ( 'ports' , neutron_context = ctx ) [ 'ports' ] #NEWLINE# self . assertEqual ( len ( ports ) , 2 ) #NEWLINE# for non_admin_port in ports : #NEWLINE# #INDENT# self . _check_response_no_portbindings ( non_admin_port )