コード例 #1
0
 def _extra_complete_multipart_args(self, extra_args):
     return get_filtered_dict(extra_args, self.COMPLETE_MULTIPART_ARGS)
コード例 #2
0
 def _extra_upload_part_args(self, extra_args):
     # Only the args in COPY_PART_ARGS actually need to be passed
     # onto the upload_part_copy calls.
     return get_filtered_dict(extra_args, self.UPLOAD_PART_COPY_ARGS)
コード例 #3
0
ファイル: upload.py プロジェクト: dpritsos/DoGSWrapper
 def _extra_upload_part_args(self, extra_args):
     # Only the args in UPLOAD_PART_ARGS actually need to be passed
     # onto the upload_part calls.
     return get_filtered_dict(extra_args, self.UPLOAD_PART_ARGS)
コード例 #4
0
ファイル: upload.py プロジェクト: dpritsos/DoGSWrapper
 def _extra_complete_multipart_args(self, extra_args):
     return get_filtered_dict(extra_args, self.COMPLETE_MULTIPART_ARGS)
コード例 #5
0
 def test_get_filtered_dict(self):
     original = {'Include': 'IncludeValue', 'NotInlude': 'NotIncludeValue'}
     whitelist = ['Include']
     self.assertEqual(get_filtered_dict(original, whitelist),
                      {'Include': 'IncludeValue'})