vdirsyncer/tests/unit/test_exceptions.py
2021-05-06 19:28:54 +02:00

13 lines
330 B
Python

from vdirsyncer import exceptions
def test_user_error_problems():
e = exceptions.UserError(
"A few problems occurred",
problems=["Problem one", "Problem two", "Problem three"],
)
assert "one" in str(e)
assert "two" in str(e)
assert "three" in str(e)
assert "problems occurred" in str(e)