Files
pre-commit/tests/output_test.py
2020-01-13 11:47:34 -08:00

10 lines
188 B
Python

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'