def test_get_tenant_volume_usages_cinder_exception(self): cinder.volume_list(IsA(http.HttpRequest)) \ .AndRaise(cinder.cinder_exception.ClientException('test')) exceptions.handle(IsA(http.HttpRequest), _("Unable to retrieve volume limit information.")) self.mox.ReplayAll() quotas._get_tenant_volume_usages(self.request, {}, [], None)
def test_get_tenant_volume_usages_cinder_exception(self): cinder.volume_list(IsA(http.HttpRequest)) \ .AndRaise(cinder.cinder_exception.ClientException('test')) exceptions.handle(IsA(http.HttpRequest), _("Unable to retrieve volume limit information.")) self.mox.ReplayAll() quotas._get_tenant_volume_usages(self.request, {}, set(), None)