(tmp_path)
| 17 | |
| 18 | |
| 19 | def test_extract_range_invalid_range(tmp_path): |
| 20 | source = tmp_path / "disk.img" |
| 21 | source.write_bytes(b"abc") |
| 22 | output = tmp_path / "out.bin" |
| 23 | |
| 24 | with pytest.raises(BlockExtractionError): |
| 25 | extract_range(str(source), -1, 1, str(output)) |
| 26 | |
| 27 | with pytest.raises(BlockExtractionError): |
| 28 | extract_range(str(source), 0, 0, str(output)) |
| 29 | |
| 30 | |
| 31 | def test_extract_range_permission_error(mocker, tmp_path): |
nothing calls this directly
no test coverage detected