mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
15 lines
366 B
Python
15 lines
366 B
Python
from __future__ import annotations
|
|
|
|
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)
|