transfer_test_6.py 390 B

123456789
  1. def testComputeEndByteSmallTotal(self):
  2. total_size = 100
  3. download = transfer.Download.FromStream(six.StringIO(),
  4. total_size=total_size)
  5. for start in (0, 10):
  6. self.assertEqual(total_size - 1,
  7. download._Download__ComputeEndByte(start),
  8. msg='Failed on start={0}'.format(start))