MCPcopy Create free account
hub / github.com/Azure/azure-storage-python / test_update_range

Method test_update_range

tests/file/test_file.py:404–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402
403 @record
404 def test_update_range(self):
405 # Arrange
406 file_name = self._create_file()
407
408 # Act
409 data = b'abcdefghijklmnop' * 32
410 self.fs.update_range(self.share_name, None, file_name, data, 0, 511)
411
412 # Assert
413 file = self.fs.get_file_to_bytes(self.share_name, None, file_name)
414 self.assertEqual(data, file.content[:512])
415 self.assertEqual(self.short_byte_data[512:], file.content[512:])
416
417 @record
418 def test_update_range_with_md5(self):

Callers

nothing calls this directly

Calls 3

_create_fileMethod · 0.95
update_rangeMethod · 0.80
get_file_to_bytesMethod · 0.80

Tested by

no test coverage detected