Attempting to open or read or request the path for a non-existent path should succeed if open_resource can return a viable data stream.
(self)
| 114 | self.execute(self.data.__name__, 'utf-8.file') |
| 115 | |
| 116 | def test_missing_path(self): |
| 117 | """ |
| 118 | Attempting to open or read or request the path for a |
| 119 | non-existent path should succeed if open_resource |
| 120 | can return a viable data stream. |
| 121 | """ |
| 122 | bytes_data = io.BytesIO(b'Hello, world!') |
| 123 | package = create_package(file=bytes_data, path=FileNotFoundError()) |
| 124 | self.execute(package, 'utf-8.file') |
| 125 | self.assertEqual(package.__loader__._path, 'utf-8.file') |
| 126 | |
| 127 | def test_extant_path(self): |
| 128 | # Attempting to open or read or request the path when the |
nothing calls this directly
no test coverage detected