ovirt-imageio/test/errors_test.py
Albert Esteve fc6e58d9e6 reuse: addheader test/*.py
Add SPDX header to python files with
the 'py' extension in the test directory.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00

10 lines
246 B
Python

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
from ovirt_imageio._internal import errors
def test_str():
e = errors.PartialContent(50, 42)
assert str(e) == "Requested 50 bytes, available 42 bytes"