(self)
| 75 | self.assertEqual("new", file_contents) |
| 76 | |
| 77 | def testReadBinaryMode(self): |
| 78 | file_path = os.path.join(self._base_dir, "temp_file") |
| 79 | file_io.write_string_to_file(file_path, "testing") |
| 80 | with file_io.FileIO(file_path, mode="rb") as f: |
| 81 | self.assertEqual(b"testing", f.read()) |
| 82 | |
| 83 | def testWriteBinaryMode(self): |
| 84 | file_path = os.path.join(self._base_dir, "temp_file") |
nothing calls this directly
no test coverage detected