(self)
| 1428 | self.assertEqual(f.read(), INPUT * 2) |
| 1429 | |
| 1430 | def test_with_pathlike_filename(self): |
| 1431 | filename = FakePath(TESTFN) |
| 1432 | with TempFile(filename): |
| 1433 | with lzma.open(filename, "wb") as f: |
| 1434 | f.write(INPUT) |
| 1435 | self.assertEqual(f.name, TESTFN) |
| 1436 | with open(filename, "rb") as f: |
| 1437 | file_data = lzma.decompress(f.read()) |
| 1438 | self.assertEqual(file_data, INPUT) |
| 1439 | with lzma.open(filename, "rb") as f: |
| 1440 | self.assertEqual(f.read(), INPUT) |
| 1441 | self.assertEqual(f.name, TESTFN) |
| 1442 | |
| 1443 | def test_bad_params(self): |
| 1444 | # Test invalid parameter combinations. |
nothing calls this directly
no test coverage detected