Clay Gerrard dd34af42f8 Fix MockHttpResponse to be more like the Real
This change pulls out that relatively new [1] little string to pull at
in the MockHttpResponse that I think is sorta ugly.  And replaces it
with the correct behavior that's representative of the Real for which
it's standing in (which is sadly our wrapper to make a requests response
feel like a httplib.HTTPResponse).

It's not clear (to me) the history which allowed this difference in the
behavior of the Real and Fake to persist - it seems to have always been
this way [2].

I also reworded a relatively new test [1] to cover more code, and make
assertions on the desired behavior of the client instead of "just" the
http_log method.

FWIW, I don't think there was necessarily anything wrong with the scope
of the new test [1] - and it certainly makes sense to see new tests copy
nearby existing tests.  But I subjectively think this smaller test is
more demonstrative of the desired behavior.

1. Related-Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9
2. Related-Change-Id: If07af46cb377f3f3d70f6c4284037241d360a8b7
Change-Id: Ib99a029c1bd1ea1efa8060fe8a11cb01deea41c6
2017-03-08 10:51:43 -08:00
2014-03-25 11:36:39 +00:00
2017-01-19 16:34:26 +01:00
2016-11-09 11:25:15 -08:00
2016-12-27 15:47:18 -08:00
2014-05-09 09:29:04 +02:00
2017-01-25 15:12:59 -08:00
2017-01-25 15:12:59 -08:00
2016-12-27 15:47:18 -08:00
2017-01-25 15:12:59 -08:00
2012-05-08 16:30:13 +01:00
2013-05-01 12:23:12 -04:00
2016-11-25 16:35:52 +01:00
2012-05-21 12:52:55 +02:00
2016-10-24 01:52:37 +02:00
2016-12-27 15:47:18 -08:00

Team and repository tags

image

Python bindings to the OpenStack Object Storage API

Latest Version

Downloads

This is a python client for the Swift API. There's a Python API (the swiftclient module), and a command-line script (swift).

Development takes place via the usual OpenStack processes as outlined in the OpenStack wiki.

This code is based on the original client previously included with OpenStack's Swift The python-swiftclient is licensed under the Apache License like the rest of OpenStack.

Contents:

Description
OpenStack Storage (Swift) Client
Readme 14 MiB
Languages
Python 99.9%
Shell 0.1%