summaryrefslogtreecommitdiff
path: root/tests/unit/s3/test_key.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/s3/test_key.py')
-rw-r--r--tests/unit/s3/test_key.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/s3/test_key.py b/tests/unit/s3/test_key.py
index 7752d9cd..6f6f6430 100644
--- a/tests/unit/s3/test_key.py
+++ b/tests/unit/s3/test_key.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
@@ -39,6 +40,11 @@ class TestS3Key(AWSMockServiceTestCase):
def default_body(self):
return "default body"
+ def test_unicode_name(self):
+ k = Key()
+ k.name = u'Österreich'
+ print(repr(k))
+
def test_when_no_restore_header_present(self):
self.set_http_response(status_code=200)
b = Bucket(self.service_connection, 'mybucket')