(self)
| 1425 | self.assertEqual(file_data, uncompressed_raw * 2) |
| 1426 | |
| 1427 | def test_filename(self): |
| 1428 | with TempFile(TESTFN): |
| 1429 | with lzma.open(TESTFN, "wb") as f: |
| 1430 | f.write(INPUT) |
| 1431 | with open(TESTFN, "rb") as f: |
| 1432 | file_data = lzma.decompress(f.read()) |
| 1433 | self.assertEqual(file_data, INPUT) |
| 1434 | with lzma.open(TESTFN, "rb") as f: |
| 1435 | self.assertEqual(f.read(), INPUT) |
| 1436 | with lzma.open(TESTFN, "ab") as f: |
| 1437 | f.write(INPUT) |
| 1438 | with lzma.open(TESTFN, "rb") as f: |
| 1439 | self.assertEqual(f.read(), INPUT * 2) |
| 1440 | |
| 1441 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <FakePath '@test_23396_tmp챈'> != '@test_23396_tmp챈' |
| 1442 | def test_with_pathlike_filename(self): |
nothing calls this directly
no test coverage detected