summaryrefslogtreecommitdiff
path: root/tests/unit/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-11-12 02:53:20 +0000
committerGerrit Code Review <review@openstack.org>2015-11-12 02:53:20 +0000
commit50978ddf6304ff1702d88498fff74c14fdab132b (patch)
treec92a335a62c2c246b2d4cfbfeaa18e8689c1d3af /tests/unit/utils.py
parent3e1a457db04697a9ccb4054eeb9f34953dcfca2e (diff)
parentce569f46517e10f2ce0d27e9ee0a922ad1d84e2f (diff)
downloadpython-swiftclient-50978ddf6304ff1702d88498fff74c14fdab132b.tar.gz
Merge "Centralize header parsing"
Diffstat (limited to 'tests/unit/utils.py')
-rw-r--r--tests/unit/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/utils.py b/tests/unit/utils.py
index 63b9c06..f3483eb 100644
--- a/tests/unit/utils.py
+++ b/tests/unit/utils.py
@@ -124,7 +124,7 @@ def fake_http_connect(*code_iter, **kwargs):
def getheaders(self):
if self.headers:
return self.headers.items()
- headers = {'content-length': len(self.body),
+ headers = {'content-length': str(len(self.body)),
'content-type': 'x-application/test',
'x-timestamp': self.timestamp,
'last-modified': self.timestamp,
@@ -132,7 +132,7 @@ def fake_http_connect(*code_iter, **kwargs):
'etag':
self.etag or '"%s"' % EMPTY_ETAG,
'x-works': 'yes',
- 'x-account-container-count': 12345}
+ 'x-account-container-count': '12345'}
if not self.timestamp:
del headers['x-timestamp']
try: