コード例 #1
0
    def setUp(self):
        super(QuotaClassSetsControllerTest, self).setUp()
        self.controller = quota_classes.QuotaClassSetsController()

        self.ctxt = context.get_admin_context()
        self.req = mock.Mock()
        self.req.environ = {'cinder.context': self.ctxt}
        self.req.environ['cinder.context'].is_admin = True
コード例 #2
0
ファイル: test_quota_class.py プロジェクト: openstack/cinder
 def setUp(self, enforce_scope=False, enforce_new_defaults=False,
           *args, **kwargs):
     super().setUp(enforce_scope, enforce_new_defaults, *args, **kwargs)
     self.controller = quota_classes.QuotaClassSetsController()
     self.api_path = '/v3/os-quota-class-sets'
     self.api_version = mv.BASE_VERSION