From: Yehuda Sadeh Date: Tue, 7 Feb 2012 01:04:24 +0000 (-0800) Subject: add test_bucket_create_special_key_names X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d196c6829d3228060ed68afa09a29ce162347dde;p=s3-tests.git add test_bucket_create_special_key_names --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 060f3718..6a75aa5e 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -2579,6 +2579,19 @@ def test_bucket_create_naming_good_contains_period(): def test_bucket_create_naming_good_contains_hyphen(): check_good_bucket_name('aaa-111') +@attr(resource='object') +@attr(method='put') +@attr(operation='create and list objects with special names') +@attr(assertion='special names work') +def test_bucket_create_special_key_names(): + key_names = [' ', '_', '_ ', '_ _', '__'] + bucket = _create_keys(keys=key_names) + + li = bucket.list() + + names = [e.name for e in list(li)] + eq(names, key_names) + @attr(resource='object') @attr(method='put') @attr(operation='copy zero sized object in same bucket')