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