mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
9 lines
330 B
Python
9 lines
330 B
Python
|
from notmuch2 import _capi as capi
|
||
|
from notmuch2 import _errors as errors
|
||
|
|
||
|
def test_status_no_message():
|
||
|
exc = errors.NotmuchError(capi.lib.NOTMUCH_STATUS_PATH_ERROR)
|
||
|
assert exc.status == capi.lib.NOTMUCH_STATUS_PATH_ERROR
|
||
|
assert exc.message is None
|
||
|
assert str(exc) == 'Path supplied is illegal for this function'
|