diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-02-27 01:44:38 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-02-27 01:44:38 +0000 |
commit | ba2ff4a6ea93314e8c519f53ae97d8cb2f31928e (patch) | |
tree | 13504c80f96a806925ff923a6775ac46127c2ea1 /tests/unit/test_swiftclient.py | |
parent | 46d817828082105a69d4da53fef2f2fbefc54809 (diff) | |
parent | aa0edd00966237163451fc44cda2c593a5215cbe (diff) | |
download | python-swiftclient-ba2ff4a6ea93314e8c519f53ae97d8cb2f31928e.tar.gz |
Merge "Force header keys/values to bytes/unicode before coercing to unicode"
Diffstat (limited to 'tests/unit/test_swiftclient.py')
-rw-r--r-- | tests/unit/test_swiftclient.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/test_swiftclient.py b/tests/unit/test_swiftclient.py index 331e804..c3074fe 100644 --- a/tests/unit/test_swiftclient.py +++ b/tests/unit/test_swiftclient.py @@ -1203,13 +1203,16 @@ class TestPostObject(MockHttpTest): def test_ok(self): c.http_connection = self.fake_http_connection(200) + delete_at = 2.1 # not str! we don't know what other devs will use! args = ('http://www.test.com', 'token', 'container', 'obj', - {'X-Object-Meta-Test': 'mymeta'}) + {'X-Object-Meta-Test': 'mymeta', + 'X-Delete-At': delete_at}) c.post_object(*args) self.assertRequests([ ('POST', '/container/obj', '', { 'x-auth-token': 'token', - 'X-Object-Meta-Test': 'mymeta'}), + 'X-Object-Meta-Test': 'mymeta', + 'X-Delete-At': delete_at}), ]) def test_unicode_ok(self): |