(self)
| 1252 | self.assertRaises(TypeError, f.write, 789) |
| 1253 | |
| 1254 | def test_writelines(self): |
| 1255 | with BytesIO(INPUT) as f: |
| 1256 | lines = f.readlines() |
| 1257 | with BytesIO() as dst: |
| 1258 | with LZMAFile(dst, "w") as f: |
| 1259 | f.writelines(lines) |
| 1260 | expected = lzma.compress(INPUT) |
| 1261 | self.assertEqual(dst.getvalue(), expected) |
| 1262 | |
| 1263 | def test_seek_forward(self): |
| 1264 | with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: |
nothing calls this directly
no test coverage detected