コード例 #1
0
 def _setup(self):
     ext_mgr = extensions.ExtensionManager()
     ext_mgr.extensions = {}
     self.controller = quota_classes.QuotaClassSetsController(ext_mgr)
コード例 #2
0
 def setUp(self):
     super(QuotaClassSetsTest, self).setUp()
     self.ext_mgr = extensions.ExtensionManager()
     self.ext_mgr.extensions = {}
     self.controller = quota_classes.QuotaClassSetsController(self.ext_mgr)
コード例 #3
0
 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)