#NEWLINE# def test_plug_dev_exists( self ) : #NEWLINE# #INDENT# self . device_exists . return_value = True #NEWLINE# with mock . patch ( 'neutron.agent.linux.interface.LOG.info' ) as log : #NEWLINE# #INDENT# br = interface . BridgeInterfaceDriver ( self . conf ) #NEWLINE# br . plug ( '01234567-1234-1234-99' , 'port-1234' , 'tap0' , 'aa:bb:cc:dd:ee:ff' ) #NEWLINE# self . assertFalse ( self . ip_dev . called ) #NEWLINE# self . assertEqual ( log . call_count , 1 )