#NEWLINE# def test_get_single_nic_with_vif_port_id( self ) : #NEWLINE# #INDENT# obj_utils . create_test_port ( self . context , node_id = self . node . id , address = 'aa:bb:cc:dd:ee:ff' , uuid = uuidutils . generate_uuid ( ) , extra = { #NEWLINE# #INDENT# 'vif_port_id' : 'test-vif-A' , #NEWLINE# #UNINDENT# } , driver = 'iscsi_ilo' ) #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid , shared = False ) as task : #NEWLINE# #INDENT# address = utils . get_single_nic_with_vif_port_id ( task ) #NEWLINE# self . assertEqual ( 'aa:bb:cc:dd:ee:ff' , address )