transfer_test_2.py 288 B

12345678
  1. def testComputeEndByte(self):
  2. total_size = 100
  3. chunksize = 10
  4. download = transfer.Download.FromStream(
  5. six.StringIO(), chunksize=chunksize, total_size=total_size)
  6. self.assertEqual(chunksize - 1,
  7. download._Download__ComputeEndByte(0, end=50))