(tmpdir)
| 1712 | |
| 1713 | @pytest.mark.gzip |
| 1714 | def test_compressed_output_gzip(tmpdir): |
| 1715 | data = b"some test data\n" * 10 + b"eof\n" |
| 1716 | fn = str(tmpdir / "compressed_output_test.gz") |
| 1717 | make_compressed_output(data, fn, "gzip") |
| 1718 | with gzip.open(fn, "rb") as f: |
| 1719 | got = f.read() |
| 1720 | assert got == data |
| 1721 | |
| 1722 | |
| 1723 | def test_compressed_output_bz2(tmpdir): |
nothing calls this directly
no test coverage detected