def _setup(self): ext_mgr = extensions.ExtensionManager() ext_mgr.extensions = {} self.controller = quota_classes.QuotaClassSetsController(ext_mgr)
def setUp(self): super(QuotaClassSetsTest, self).setUp() self.ext_mgr = extensions.ExtensionManager() self.ext_mgr.extensions = {} self.controller = quota_classes.QuotaClassSetsController(self.ext_mgr)
def _setup(self): ext_mgr = extensions.ExtensionManager() ext_mgr.extensions = {} self.req = fakes.HTTPRequest.blank('', use_admin_context=True) self.non_admin_req = fakes.HTTPRequest.blank('') self.controller = quota_classes.QuotaClassSetsController(ext_mgr)