def test_quota_class_not_found(self): # Verify response code for exception.QuotaClassNotFound class_name = "FakeQuotaClass" e = exception.QuotaClassNotFound(class_name=class_name) self.assertEqual(404, e.code)
def test_quota_class_not_found(self): # Verify response code for exception.QuotaClassNotFound e = exception.QuotaClassNotFound() self.assertEqual(e.code, 404)