7 lines
243 B
Python
7 lines
243 B
Python
from porchlight.store.exceptions import DuplicateError
|
|
|
|
|
|
def test_duplicate_error_is_exception() -> None:
|
|
error = DuplicateError("user already exists")
|
|
assert isinstance(error, Exception)
|
|
assert str(error) == "user already exists"
|