summaryrefslogtreecommitdiff
path: root/tests/unit/test_swiftclient.py
diff options
context:
space:
mode:
authorTimur Alperovich <timur@timuralp.com>2018-11-23 22:47:15 -0800
committerTim Burke <tim@swiftstack.com>2018-11-30 22:58:36 +0000
commitedfeae372312b3370dc12deea8cd8028ecba6bd6 (patch)
tree2c14c732144619423019945132b110be692ecb48 /tests/unit/test_swiftclient.py
parent8778c91c71e83a40cfeedc4875ae3b66c7effb85 (diff)
downloadpython-swiftclient-edfeae372312b3370dc12deea8cd8028ecba6bd6.tar.gz
Add delimiter to get_account().
Exposes the delimiter parameter, which the Swift API supports for container listings. Change-Id: Id8dfce01a9b64de9d1222aab9a4a682ce9e0f2b7
Diffstat (limited to 'tests/unit/test_swiftclient.py')
-rw-r--r--tests/unit/test_swiftclient.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/test_swiftclient.py b/tests/unit/test_swiftclient.py
index 62875a5..2d45deb 100644
--- a/tests/unit/test_swiftclient.py
+++ b/tests/unit/test_swiftclient.py
@@ -704,6 +704,18 @@ class TestGetAccount(MockHttpTest):
'x-auth-token': 'asdf'}),
])
+ def test_param_delimiter(self):
+ c.http_connection = self.fake_http_connection(
+ 204,
+ query_string="format=json&delimiter=-")
+ c.get_account('http://www.test.com/v1/acct', 'asdf',
+ delimiter='-')
+ self.assertRequests([
+ ('GET', '/v1/acct?format=json&delimiter=-', '', {
+ 'accept-encoding': 'gzip',
+ 'x-auth-token': 'asdf'}),
+ ])
+
class TestHeadAccount(MockHttpTest):