(self)
| 20 | |
| 21 | class OpenTests: |
| 22 | def test_open_binary(self): |
| 23 | target = resources.files(self.data) / 'binary.file' |
| 24 | with target.open('rb') as fp: |
| 25 | result = fp.read() |
| 26 | self.assertEqual(result, bytes(range(4))) |
| 27 | |
| 28 | def test_open_text_default_encoding(self): |
| 29 | target = resources.files(self.data) / 'utf-8.file' |
nothing calls this directly
no test coverage detected