def uploaded_episodes(mocked_s3, bucket, folder): mocked_s3.create_bucket(Bucket=bucket) for i in range(1, 11): size = 1000 + 100 * i mocked_s3.put_object( Bucket=bucket, Key='{}/episode{}.mp3'.format(folder, i), Body='x' * size,)