Пример #1
0
 def multipartCopy(self, threadPoolSize):
     # key size is padded to ensure some threads are reused
     keySize = int((threadPoolSize * partSize) * 1.3)
     with openS3(keySize) as srcKey:
         with openS3() as dstBucket:
             copyKeyMultipart(srcKey, dstBucket, 'test', partSize)
             self.assertEqual(srcKey.get_contents_as_string(),
                              dstBucket.get_key('test').get_contents_as_string())
Пример #2
0
 def multipartCopy(self, threadPoolSize):
     # key size is padded to ensure some threads are reused
     keySize = int((threadPoolSize * partSize) * 1.3)
     with openS3(keySize) as srcKey:
         with openS3() as dstBucket:
             copyKeyMultipart(srcKey, dstBucket, 'test', partSize)
             self.assertEqual(srcKey.get_contents_as_string(),
                              dstBucket.get_key('test').get_contents_as_string())