def _generate_random_data(self, size):
      data = []
      current_size = 0
      while current_size < size:
        value = str(random.randint(0, 9))
        value_size = len(value)
        data.append(value)
        current_size += value_size

      return data
dataset/ETHPy150Open cloudkick/libcloud/test/storage/test_cloudfiles.py/CloudFilesMockRawResponse._generate_random_data/original