[z3-checkins] r33007 - z3/jsonserver/trunk

jwashin at codespeak.net jwashin at codespeak.net
Sun Oct 8 20:24:15 CEST 2006


Author: jwashin
Date: Sun Oct  8 20:24:13 2006
New Revision: 33007

Modified:
   z3/jsonserver/trunk/JSONViews.txt
Log:
Oops python error msgs are not always in English.


Modified: z3/jsonserver/trunk/JSONViews.txt
==============================================================================
--- z3/jsonserver/trunk/JSONViews.txt	(original)
+++ z3/jsonserver/trunk/JSONViews.txt	Sun Oct  8 20:24:13 2006
@@ -150,22 +150,23 @@
     >>> browser.contents.count('15') == 1
     True
 
-This request does not send enough parameters.
+This request does not send enough parameters.  The error I get is
+'{"error":"doResponse() takes at least 2 arguments (1 given)"}'
     >>> browser.open('/sum')
     Traceback (most recent call last):
     ...
     HTTPError: HTTP Error 500: Internal Server Error
-    >>> browser.contents
-    '{"error":"doResponse() takes at least 2 arguments (1 given)"}'
+    >>> 'error' in browser.contents
+    True
 
 This request also does not send enough parameters, because the parameter 
-provided does not match the method signature.
+provided does not match the method signature.  Same error as above.
     >>> browser.open('/sum?d=20')
     Traceback (most recent call last):
     ...
     HTTPError: HTTP Error 500: Internal Server Error
-    >>> browser.contents
-    '{"error":"doResponse() takes at least 2 arguments (1 given)"}'
+    >>> 'error' in browser.contents
+    True
 
 Let's see if the local error handling works. We should get an HTTP error and 
 something like '{"a":"zzz5","b":"10","error":"bad params"}


More information about the z3-checkins mailing list