#NEWLINE# def test_bagpipe_callback_to_rpc_update_down_ignore_external_net( self ) : #NEWLINE# #INDENT# with self . subnet ( network = self . external_net ) as subnet , self . port ( subnet = subnet , arg_list = ( portbindings . HOST_ID , ) , ** { #NEWLINE# #INDENT# portbindings . HOST_ID : TESTHOST , #NEWLINE# #UNINDENT# } ) as port : #NEWLINE# #INDENT# self . _update_port_status ( port , PORT_STATUS_DOWN ) #NEWLINE# self . bagpipe_driver . registry_port_updated ( None , None , None , context = self . ctxt , port = port [ 'port' ] ) #NEWLINE# self . assertFalse ( self . mock_attach_rpc . called ) #NEWLINE# self . assertFalse ( self . mock_detach_rpc . called )