(self)
| 1262 | self.assertRaises(TypeError, f.write, 789) |
| 1263 | |
| 1264 | def test_writelines(self): |
| 1265 | with BytesIO(INPUT) as f: |
| 1266 | lines = f.readlines() |
| 1267 | with BytesIO() as dst: |
| 1268 | with LZMAFile(dst, "w") as f: |
| 1269 | f.writelines(lines) |
| 1270 | expected = lzma.compress(INPUT) |
| 1271 | self.assertEqual(dst.getvalue(), expected) |
| 1272 | |
| 1273 | def test_seek_forward(self): |
| 1274 | with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: |
nothing calls this directly
no test coverage detected