--- a/testsuite.py Fri Jan 19 13:41:23 2018 +0200 +++ b/testsuite.py Sun Jan 21 15:03:38 2018 +0200 @@ -3,4 +3,11 @@ 'type': 'warning', 'object': object, 'message': str.format(*message), - } \ No newline at end of file + } + +def error(object, *message): + return { + 'type': 'error', + 'object': object, + 'message': str.format(*message), + }