def _setup(self):
     ext_mgr = extensions.ExtensionManager()
     ext_mgr.extensions = {'os-extended-networks': 'fake'}
     self.controller = networks.NetworkController(self.fake_network_api,
                                                  ext_mgr)
     self.neutron_ctrl = networks.NetworkController(
         neutron.API(skip_policy_check=False))
     self.req = fakes.HTTPRequest.blank('', use_admin_context=True)
    def _setup(self):
        ext_mgr = extensions.ExtensionManager()
        ext_mgr.extensions = {'os-extended-networks': 'fake'}
        self.req = fakes.HTTPRequest.blank('', use_admin_context=True)

        self.controller = networks.NetworkController(self.PassthroughAPI(),
                                                     ext_mgr)
 def _setup(self):
     self.controller = networks.NetworkController(self.fake_network_api)
     self.associate_controller = networks_associate_v21\
         .NetworkAssociateActionController(self.fake_network_api)
     self.neutron_assoc_ctrl = (
         networks_associate_v21.NetworkAssociateActionController(
             neutron.API(skip_policy_check=True)))
     self.req = fakes.HTTPRequest.blank('')