diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-11-12 02:53:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-11-12 02:53:20 +0000 |
commit | 50978ddf6304ff1702d88498fff74c14fdab132b (patch) | |
tree | c92a335a62c2c246b2d4cfbfeaa18e8689c1d3af /tests/unit/utils.py | |
parent | 3e1a457db04697a9ccb4054eeb9f34953dcfca2e (diff) | |
parent | ce569f46517e10f2ce0d27e9ee0a922ad1d84e2f (diff) | |
download | python-swiftclient-50978ddf6304ff1702d88498fff74c14fdab132b.tar.gz |
Merge "Centralize header parsing"
Diffstat (limited to 'tests/unit/utils.py')
-rw-r--r-- | tests/unit/utils.py | 4 |
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: |