1
0
Fork 0
qmk_firmware/lib/python/qmk/tests/test_qmk_errors.py

9 lines
216 B
Python
Raw Normal View History

2019-08-22 06:40:24 +00:00
from qmk.errors import NoSuchKeyboardError
2019-08-22 06:46:51 +00:00
2019-11-23 18:42:39 +00:00
def test_nosuchkeyboarderror():
2019-08-22 06:40:24 +00:00
try:
2019-08-22 06:46:51 +00:00
raise NoSuchKeyboardError("test message")
2019-08-22 06:40:24 +00:00
except NoSuchKeyboardError as e:
assert e.message == 'test message'