def test_attributes(self): blob = mock.Mock() blob.chunk_size = 256 reader = BlobReader(blob) self.assertTrue(reader.seekable()) self.assertTrue(reader.readable()) self.assertFalse(reader.writable()) self.assertEqual(256, reader._chunk_size)
def test_attributes(self): blob = mock.Mock() blob.chunk_size = 256 reader = BlobReader(blob) self.assertTrue(reader.seekable()) self.assertTrue(reader.readable()) self.assertFalse(reader.writable()) self.assertEqual(reader._chunk_size, 256) self.assertEqual(reader._retry, DEFAULT_RETRY)