

def _make_data(self, approximate_length):
    "\n        Generate a sequence of bytes to use in testing an upload.\n        Don't repeat a short pattern, so we're sure that the different\n        parts of a large file are actually different.\n\n        Returns bytes.\n        "
    fragments = []
    so_far = 0
    while (so_far < approximate_length):
        fragment = ('%d:' % so_far).encode('utf-8')
        so_far += len(fragment)
        fragments.append(fragment)
    return six.b('').join(fragments)

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