From 29caf70ccd9a57a892dc8574ac3e6412c815e781 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Mon, 5 Sep 2016 09:53:27 +0200 Subject: [PATCH] test get object with special key name Signed-off-by: Orit Wasserman --- s3tests/functional/test_s3.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index a51a861..0c80471 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -4707,6 +4707,12 @@ def test_bucket_create_special_key_names(): names = [e.name for e in list(li)] eq(names, key_names) + for name in key_names: + key = bucket.get_key(name) + eq(key.name, name) + content = key.get_contents_as_string() + eq(content, name) + @attr(resource='bucket') @attr(method='get') @attr(operation='create and list objects with underscore as prefix, list using prefix')