qmk-firmware/lib/python/qmk/tests/test_qmk_errors.py

8 lines
216 B
Python
Raw Normal View History

2019-08-22 06:40:24 +00:00
from qmk.errors import NoSuchKeyboardError
def test_NoSuchKeyboardError():
try:
raise(NoSuchKeyboardError("test message"))
except NoSuchKeyboardError as e:
assert e.message == 'test message'