def test_s3_multipart_upload_with_small_single_part(self):
    bucket_name = ('notif-large-%s' % short_uid())
    key_by_path = 'key-by-hostname'
    (queue_url, queue_attributes) = self._create_test_queue()
    self._create_test_notification_bucket(queue_attributes, bucket_name=bucket_name)
    self._perform_multipart_upload(bucket=bucket_name, key=key_by_path, zip=True)
    self.assertEqual(self._get_test_queue_message_count(queue_url), '1')
    self.sqs_client.delete_queue(QueueUrl=queue_url)
    self._delete_bucket(bucket_name, [key_by_path])
def test_s3_multipart_upload_with_small_single_part(self):
    bucket_name = ('notif-large-%s' % short_uid())
    key_by_path = 'key-by-hostname'
    (queue_url, queue_attributes) = self._create_test_queue()
    self._create_test_notification_bucket(queue_attributes, bucket_name=bucket_name)
    self._perform_multipart_upload(bucket=bucket_name, key=key_by_path, zip=True)
    self.assertEqual(self._get_test_queue_message_count(queue_url), '1')
    self.sqs_client.delete_queue(QueueUrl=queue_url)
    self._delete_bucket(bucket_name, [key_by_path])