summaryrefslogtreecommitdiff
path: root/tests/unit/test_swiftclient.py
diff options
context:
space:
mode:
authorCharles Hsu <charles0126@gmail.com>2016-09-19 23:18:18 +0800
committerCharles Hsu <charles0126@gmail.com>2016-11-07 13:18:29 +0800
commit6cf2bd6626df8e4c68bd5463d9b030e315f76b42 (patch)
treef1b8393f5080d42d9530e7308245b34b30e33972 /tests/unit/test_swiftclient.py
parent0ec6b7b162a7b98ca3fad515de17d8f8a88dda72 (diff)
downloadpython-swiftclient-6cf2bd6626df8e4c68bd5463d9b030e315f76b42.tar.gz
Add additional headers for HEAD/GET/DELETE requests.
Change-Id: I69276ba711057c122f97deac412e492e313c34dd Closes-Bug: 1615830
Diffstat (limited to 'tests/unit/test_swiftclient.py')
-rw-r--r--tests/unit/test_swiftclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_swiftclient.py b/tests/unit/test_swiftclient.py
index 7d0dd9a..f717e52 100644
--- a/tests/unit/test_swiftclient.py
+++ b/tests/unit/test_swiftclient.py
@@ -3003,7 +3003,7 @@ class TestServiceToken(MockHttpTest):
with mock.patch('swiftclient.client.http_connection',
self.fake_http_connection(202)):
conn = self.get_connection()
- conn.delete_object('container1', 'obj1', 'a_string')
+ conn.delete_object('container1', 'obj1', query_string='a_string')
self.assertEqual(1, len(self.request_log), self.request_log)
for actual in self.iter_request_log():
self.assertEqual('DELETE', actual['method'])