

def test_upload_file_too_many_retryable_errors(self):
    if IS_27_OR_LATER:
        self.simulator.set_upload_errors(([CanRetry(True)] * 6))
        data = six.b('hello world')
        with self.assertRaises(MaxRetriesExceeded):
            self.bucket.upload_bytes(data, 'file1')

dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/test/test_bucket.py TestUpload.test_upload_file_too_many_retryable_errors/original