changeset 2497:e3bb982b4011

s/test_multicall.py/test_xmlrpc.py/
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 22 Jul 2007 05:02:34 +0200
parents 7283062fce1a
children 3b3b76b2225c
files MoinMoin/xmlrpc/_tests/test_multicall.py MoinMoin/xmlrpc/_tests/test_xmlrpc.py
diffstat 2 files changed, 30 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/_tests/test_multicall.py	Sun Jul 22 04:16:26 2007 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - MoinMoin.xmlrpc.xmlrpc_system_multicall Fault serialization
-
-    @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
-    @license: GNU GPL, see COPYING for details.
-"""
-
-from MoinMoin.xmlrpc import XmlRpcBase
-from xmlrpclib import Fault
-
-def xmlrpc_return_fault():
-    return Fault(666, "Fault description")
-
-def test_fault_serialization(request):
-    xmlrpc = XmlRpcBase(request)
-    xmlrpc.xmlrpc_return_fault = xmlrpc_return_fault
-    args = [{'methodName': 'return_fault', 'params': []}]
-
-    print """If a XML RPC method returns a Fault, we should get a failure response
-    instead of a serialized Fault, as it happened in the past. See revision
-    8b7d6d70fc95 for details"""
-
-    result = xmlrpc.xmlrpc_system_multicall(args)
-    assert type(result[0]) == dict
-    assert result[0].has_key("faultCode") and result[0].has_key("faultString")
-
-
-coverage_modules = ['MoinMoin.xmlrpc']
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/xmlrpc/_tests/test_xmlrpc.py	Sun Jul 22 05:02:34 2007 +0200
@@ -0,0 +1,30 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - MoinMoin.xmlrpc.xmlrpc_system_multicall Fault serialization
+
+    @copyright: 2007 by Karol Nowak <grywacz@gmail.com>
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin.xmlrpc import XmlRpcBase
+from xmlrpclib import Fault
+
+def xmlrpc_return_fault():
+    return Fault(666, "Fault description")
+
+def test_fault_serialization(request):
+    xmlrpc = XmlRpcBase(request)
+    xmlrpc.xmlrpc_return_fault = xmlrpc_return_fault
+    args = [{'methodName': 'return_fault', 'params': []}]
+
+    print """If a XML RPC method returns a Fault, we should get a failure response
+    instead of a serialized Fault, as it happened in the past. See revision
+    8b7d6d70fc95 for details"""
+
+    result = xmlrpc.xmlrpc_system_multicall(args)
+    assert type(result[0]) == dict
+    assert result[0].has_key("faultCode") and result[0].has_key("faultString")
+
+
+coverage_modules = ['MoinMoin.xmlrpc']
+