#NEWLINE# def setUp( self , plugin = None ) : #NEWLINE# #INDENT# self . mocked_bagpipeAPI = mock . patch ( 'networking_bagpipe.agent.bgpvpn.rpc_client.BGPVPNAgentNotifyApi' ) . start ( ) . return_value #NEWLINE# provider = 'networking_bgpvpn.neutron.services.service_drivers.bagpipe.bagpipe.BaGPipeBGPVPNDriver' #NEWLINE# super ( TestBagpipeCommon , self ) . setUp ( service_provider = provider , core_plugin = plugin ) #NEWLINE# self . ctxt = n_context . Context ( 'fake_user' , 'fake_project' ) #NEWLINE# n_dict = { #NEWLINE# #INDENT# 'name' : 'netfoo' , #NEWLINE# 'tenant_id' : 'fake_project' , #NEWLINE# 'admin_state_up' : True , #NEWLINE# 'router:external' : True , #NEWLINE# 'shared' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . external_net = { #NEWLINE# #INDENT# 'network' : self . plugin . create_network ( n_dict . ctxt , { #NEWLINE# #INDENT# 'network' : n_dict , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# }