summaryrefslogtreecommitdiffstats
path: root/tests/output_test.py
blob: 1cdacbbcec54c8390da42aa9c33bbe96bce1917f (plain)
1
2
3
4
5
6
7
8
9
import io

from pre_commit import output


def test_output_write_writes():
    stream = io.BytesIO()
    output.write('hello world', stream)
    assert stream.getvalue() == b'hello world'