QMK/lib/python/qmk/tests/test_qmk_errors.py

9 lines
216 B
Python
Raw Normal View History

2020-03-23 10:48:11 +01:00
from qmk.errors import NoSuchKeyboardError
def test_nosuchkeyboarderror():
try:
raise NoSuchKeyboardError("test message")
except NoSuchKeyboardError as e:
assert e.message == 'test message'