Module Import alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str ListLoad Return ListLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str ListLoad Return ListLoad decorator_list decorator_list FunctionDef arguments args defaults vararg body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Call NameLoad Dict Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Dict Str Num NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Dict Str Str Str Str Str Dict Str Str Num Num Assign NameStore Dict Str Str Str Str Str Dict Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad NameLoad keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Dict Str Str Str Str Str Dict Str Str Num Num Assign NameStore Dict Str Str Str Str Str Dict Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad NameLoad keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Num Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Dict Assign NameStore Call NameLoad Dict Str Str Str Num Dict Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str Str NameLoad Str Lambda arguments args defaults vararg Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest swift.common.swob Request HTTPUnauthorized swift.common.middleware container_quotas FakeCache N/A object N/A __init__ N/A N/A self val N/A N/A N/A N/A status val N/A N/A N/A val N/A status 200 N/A N/A self val val N/A get N/A N/A self N/A args N/A N/A N/A self val N/A N/A FakeApp N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A __call__ N/A N/A self env start_response N/A N/A N/A N/A start_response 200 OK N/A N/A N/A N/A N/A FakeMissingApp N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A __call__ N/A N/A self env start_response N/A N/A N/A N/A start_response 404 Not Found N/A N/A N/A N/A N/A start_response N/A N/A N/A args N/A N/A N/A TestContainerQuotas N/A N/A unittest TestCase N/A test_split_path_empty_container_path_segment N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A req N/A N/A Request blank /v1/a//something/something_else environ N/A REQUEST_METHOD swift.cache PUT N/A key value N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_not_handled N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD PUT N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD GET N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_no_quotas N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT N/A FakeCache N/A 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_exceed_bytes_quota N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 2 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT cache 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_bytes_quota_copy_from N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 2 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache PUT N/A length 10 cache headers N/A x-copy-from /c2/o2 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_bytes_quota_copy_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 2 N/A req N/A N/A Request blank /v1/a/c2/o2 environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache COPY N/A length 10 cache headers N/A Destination /c/o N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_not_exceed_bytes_quota N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT cache 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_not_exceed_bytes_quota_copy_from N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache PUT N/A length 10 cache headers N/A x-copy-from /c2/o2 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_not_exceed_bytes_quota_copy_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c2/o2 environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache COPY N/A length 10 cache headers N/A Destination /c/o N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_bytes_quota_copy_from_no_src N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache PUT N/A length 10 cache headers N/A x-copy-from /c2/o3 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_bytes_quota_copy_from_bad_src N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache PUT cache headers N/A x-copy-from bad_path N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 412 N/A test_bytes_quota_copy_verb_no_src N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c2/o3 environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache COPY N/A length 10 cache headers N/A Destination /c/o N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_exceed_counts_quota N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 1 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT cache 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_counts_quota_copy_from N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 1 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.object/a/c2/o2 swift.cache PUT N/A length 10 cache headers N/A x-copy-from /c2/o2 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_counts_quota_copy_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 1 N/A req N/A N/A Request blank /v1/a/c2/o2 environ N/A REQUEST_METHOD swift.cache COPY cache headers N/A Destination /c/o N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_counts_quota_copy_cross_account_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A a_c_cache N/A storage_policy meta status object_count 0 N/A quota-count 2 200 1 N/A a2_c_cache N/A storage_policy meta status object_count 0 N/A quota-count 1 200 1 N/A req N/A N/A Request blank /v1/a/c2/o2 environ N/A REQUEST_METHOD swift.container/a/c swift.container/a2/c COPY a_c_cache a2_c_cache headers N/A Destination Destination-Account /c/o a2 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_exceed_counts_quota_copy_cross_account_PUT_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A a_c_cache N/A storage_policy meta status object_count 0 N/A quota-count 2 200 1 N/A a2_c_cache N/A storage_policy meta status object_count 0 N/A quota-count 1 200 1 N/A req N/A N/A Request blank /v1/a2/c/o environ N/A REQUEST_METHOD swift.container/a/c swift.container/a2/c PUT a_c_cache a2_c_cache headers N/A X-Copy-From X-Copy-From-Account /c2/o2 a N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 413 N/A N/A N/A self assertEqual N/A res body Upload exceeds quota. N/A test_not_exceed_counts_quota N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 2 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT cache 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_not_exceed_counts_quota_copy_from N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 2 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache PUT cache headers N/A x-copy-from /c2/o2 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_not_exceed_counts_quota_copy_verb N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta 1 N/A quota-count 2 N/A req N/A N/A Request blank /v1/a/c2/o2 environ N/A REQUEST_METHOD swift.cache COPY cache headers N/A Destination /c/o N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_invalid_quotas N/A N/A self N/A N/A N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD HTTP_X_CONTAINER_META_QUOTA_BYTES POST abc N/A res N/A N/A req get_response N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A N/A N/A self assertEqual N/A res status_int 400 N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD HTTP_X_CONTAINER_META_QUOTA_COUNT POST abc N/A res N/A N/A req get_response N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A N/A N/A self assertEqual N/A res status_int 400 N/A test_valid_quotas N/A N/A self N/A N/A N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD HTTP_X_CONTAINER_META_QUOTA_BYTES POST 123 N/A res N/A N/A req get_response N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A N/A N/A self assertEqual N/A res status_int 200 N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD HTTP_X_CONTAINER_META_QUOTA_COUNT POST 123 N/A res N/A N/A req get_response N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_delete_quotas N/A N/A self N/A N/A N/A req N/A N/A Request blank /v1/a/c environ N/A REQUEST_METHOD HTTP_X_CONTAINER_META_QUOTA_BYTES POST None N/A res N/A N/A req get_response N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A N/A N/A self assertEqual N/A res status_int 200 N/A test_missing_container N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeMissingApp N/A N/A cache N/A FakeCache N/A bytes meta 0 N/A quota-bytes 100 N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH PUT cache 100 N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 404 N/A test_auth_fail N/A N/A self N/A N/A N/A app N/A N/A container_quotas ContainerQuotaMiddleware N/A FakeApp N/A N/A cache N/A FakeCache N/A object_count meta write_acl 1 N/A quota-count 1 None N/A req N/A N/A Request blank /v1/a/c/o environ N/A REQUEST_METHOD swift.cache CONTENT_LENGTH swift.authorize PUT cache 100 N/A N/A N/A N/A args N/A HTTPUnauthorized N/A res N/A N/A req get_response app N/A N/A N/A self assertEqual N/A res status_int 401 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main