#NEWLINE# def test_get_assigned_devices_info( self ) : #NEWLINE# #INDENT# with mock . patch ( 'neutron.plugins.ml2.drivers.mech_sriov.agent.eswitch_manager.EmbSwitch.get_assigned_devices_info' , return_value = [ ( self . ASSIGNED_MAC , self . PCI_SLOT ) ] ) : #NEWLINE# #INDENT# result = self . eswitch_mgr . get_assigned_devices_info ( ) #NEWLINE# self . assertIn ( self . ASSIGNED_MAC , list ( result ) [ 0 ] ) #NEWLINE# self . assertIn ( self . PCI_SLOT , list ( result ) [ 0 ] )