testsuite.py

changeset 13
12d4ddc4bfd8
parent 12
eb74680a5e43
child 16
09cc89622262
--- 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),
+    }

mercurial