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

Method test_file_unicode_data

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

Source from the content-addressed store, hash-verified

652
653 @record
654 def test_file_unicode_data(self):
655 # Arrange
656 file_name = self._get_file_reference()
657
658 # Act
659 data = u'hello world啊齄丂狛狜'.encode('utf-8')
660 self.fs.create_file_from_bytes(self.share_name, None, file_name, data)
661
662 # Assert
663 file = self.fs.get_file_to_bytes(self.share_name, None, file_name)
664 self.assertIsInstance(file, File)
665 self.assertEqual(file.content, data)
666
667 @record
668 def test_unicode_get_file_binary_data(self):

Callers

nothing calls this directly

Calls 4

_get_file_referenceMethod · 0.95
get_file_to_bytesMethod · 0.80
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected