(self)
| 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): |
nothing calls this directly
no test coverage detected