(self)
| 2344 | self.assertEqual(dat, SAMPLES[0]) |
| 2345 | |
| 2346 | def test_file_prefix(self): |
| 2347 | bi = io.BytesIO() |
| 2348 | with ZstdFile(bi, 'w', zstd_dict=TRAINED_DICT.as_prefix) as f: |
| 2349 | f.write(SAMPLES[0]) |
| 2350 | bi.seek(0) |
| 2351 | with ZstdFile(bi, zstd_dict=TRAINED_DICT.as_prefix) as f: |
| 2352 | dat = f.read() |
| 2353 | self.assertEqual(dat, SAMPLES[0]) |
| 2354 | |
| 2355 | def test_UnsupportedOperation(self): |
| 2356 | # 1 |
nothing calls this directly
no test coverage detected