(self)
| 542 | class FileTestCase(unittest.TestCase): |
| 543 | |
| 544 | def test_init(self): |
| 545 | with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: |
| 546 | self.assertIsInstance(f, LZMAFile) |
| 547 | self.assertEqual(f.mode, "rb") |
| 548 | with LZMAFile(BytesIO(), "w") as f: |
| 549 | self.assertIsInstance(f, LZMAFile) |
| 550 | self.assertEqual(f.mode, "wb") |
| 551 | with LZMAFile(BytesIO(), "x") as f: |
| 552 | self.assertIsInstance(f, LZMAFile) |
| 553 | self.assertEqual(f.mode, "wb") |
| 554 | with LZMAFile(BytesIO(), "a") as f: |
| 555 | self.assertIsInstance(f, LZMAFile) |
| 556 | self.assertEqual(f.mode, "wb") |
| 557 | |
| 558 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <FakePath '@test_23396_tmp챈'> != '@test_23396_tmp챈' |
| 559 | def test_init_with_PathLike_filename(self): |
nothing calls this directly
no test coverage detected