diff options
author | reinhillmann <rein@google.com> | 2013-09-12 14:00:57 -0700 |
---|---|---|
committer | reinhillmann <rein@google.com> | 2013-09-12 14:00:57 -0700 |
commit | 906592889cd1f32d4c2e85e1c4a759a79050febb (patch) | |
tree | e54e7b388fc20c3c9a624390bfedfa5bc03c1089 | |
parent | 6c5a394670aef55435e24423fd26e56a0b3b3489 (diff) | |
download | boto-906592889cd1f32d4c2e85e1c4a759a79050febb.tar.gz |
Fix GS resumable upload tests.
-rw-r--r-- | tests/integration/gs/test_resumable_uploads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/gs/test_resumable_uploads.py b/tests/integration/gs/test_resumable_uploads.py index 7c601451..68626eb2 100644 --- a/tests/integration/gs/test_resumable_uploads.py +++ b/tests/integration/gs/test_resumable_uploads.py @@ -308,7 +308,7 @@ class ResumableUploadTests(GSTestCase): Tests that resumable upload correctly sets passed metadata """ res_upload_handler = ResumableUploadHandler() - headers = {'Content-Type' : 'text/plain', 'Content-Encoding' : 'gzip', + headers = {'Content-Type' : 'text/plain', 'Content-Encoding' : 'utf8', 'x-goog-meta-abc' : 'my meta', 'x-goog-acl' : 'public-read'} small_src_file_as_string, small_src_file = self.make_small_file() small_src_file.seek(0) @@ -321,7 +321,7 @@ class ResumableUploadTests(GSTestCase): dst_key.get_contents_as_string()) dst_key.open_read() self.assertEqual('text/plain', dst_key.content_type) - self.assertEqual('gzip', dst_key.content_encoding) + self.assertEqual('utf8', dst_key.content_encoding) self.assertTrue('abc' in dst_key.metadata) self.assertEqual('my meta', str(dst_key.metadata['abc'])) acl = dst_key.get_acl() |