#NEWLINE# def test_get_pci_device_fail( self ) : #NEWLINE# #INDENT# with mock . patch ( 'neutron.plugins.ml2.drivers.mech_sriov.agent.pci_lib.PciDeviceIPWrapper.get_assigned_macs' , return_value = [ self . ASSIGNED_MAC ] ) , mock . patch ( 'neutron.plugins.ml2.drivers.mech_sriov.agent.eswitch_manager.PciOsWrapper.is_assigned_vf' , return_value = True ) : #NEWLINE# #INDENT# result = self . emb_switch . get_pci_device ( self . WRONG_PCI_SLOT ) #NEWLINE# self . assertIsNone ( result )