1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
7 from . import arvados_testutil as tutil
9 class ManifestExamples(object):
10 def make_manifest(self,
15 datablip = 'x' * bytes_per_block
16 data_loc = tutil.str_keep_locator(datablip)
17 with tutil.mock_keep_responses(data_loc, 200):
18 coll = arvados.CollectionWriter()
19 for si in range(0, streams):
20 for fi in range(0, files_per_stream):
21 with coll.open("stream{}/file{}.txt".format(si, fi)) as f:
22 for bi in range(0, blocks_per_file):
24 return coll.manifest_text()