Path should be readable and a pathlib.Path instance.
(self)
| 14 | |
| 15 | class PathTests: |
| 16 | def test_reading(self): |
| 17 | """ |
| 18 | Path should be readable and a pathlib.Path instance. |
| 19 | """ |
| 20 | target = resources.files(self.data) / 'utf-8.file' |
| 21 | with resources.as_file(target) as path: |
| 22 | self.assertIsInstance(path, pathlib.Path) |
| 23 | self.assertEndsWith(path.name, "utf-8.file") |
| 24 | self.assertEqual('Hello, UTF-8 world!\n', path.read_text(encoding='utf-8')) |
| 25 | |
| 26 | |
| 27 | class PathDiskTests(PathTests, util.DiskSetup, unittest.TestCase): |
nothing calls this directly
no test coverage detected