#NEWLINE# def _setup( self ) : #NEWLINE# #INDENT# ext_mgr = extensions . ExtensionManager ( ) #NEWLINE# ext_mgr . extensions = { #NEWLINE# #INDENT# 'os-extended-networks' : 'fake' , #NEWLINE# #UNINDENT# } #NEWLINE# self . controller = networks . NetworkController ( self . fake_network_api , ext_mgr ) #NEWLINE# self . associate_controller = networks_associate . NetworkAssociateActionController ( self . fake_network_api ) #NEWLINE# self . neutron_assoc_ctrl = networks_associate . NetworkAssociateActionController ( neutron . API ( skip_policy_check = False ) ) #NEWLINE# self . req = fakes . HTTPRequest . blank ( '' , use_admin_context = True ) #NEWLINE# self . non_admin_req = fakes . HTTPRequest . blank ( '' )