11 lines
267 B
Python
11 lines
267 B
Python
from fooder.exc import ApiException
|
|
|
|
|
|
class TestException(ApiException):
|
|
HTTP_CODE = 0
|
|
MESSAGE = "test"
|
|
|
|
|
|
def test_exc_message():
|
|
assert TestException().message == TestException.MESSAGE
|
|
assert TestException("other message").message == "other message"
|