Unquote s3 key names. Closes #13.
This commit is contained in:
parent
8fe0c91853
commit
98d7a50790
3 changed files with 25 additions and 0 deletions
|
|
@ -205,3 +205,16 @@ def test_bucket_name_with_dot():
|
|||
|
||||
k = Key(bucket, 'somekey')
|
||||
k.set_contents_from_string('somedata')
|
||||
|
||||
|
||||
@mock_s3
|
||||
def test_key_with_special_characters():
|
||||
conn = boto.connect_s3()
|
||||
bucket = conn.create_bucket('test_bucket_name')
|
||||
|
||||
key = Key(bucket, 'test_list_keys_2/x?y')
|
||||
key.set_contents_from_string('value1')
|
||||
|
||||
key_list = bucket.list('test_list_keys_2/', '/')
|
||||
keys = [x for x in key_list]
|
||||
keys[0].name.should.equal("test_list_keys_2/x?y")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue