diff Lib/test/test_xmlrpc.py @ 44239:369a4e06fd30

Added another test case for kwonly methods
author Christian Heimes <christian@cheimes.de>
date Sat, 08 Dec 2007 22:32:47 +0000
parents a5c4739121e1
children ca2683a67943
line wrap: on
line diff
--- a/Lib/test/test_xmlrpc.py	Sat Dec 08 22:17:26 2007 +0000
+++ b/Lib/test/test_xmlrpc.py	Sat Dec 08 22:32:47 2007 +0000
@@ -169,6 +169,13 @@
         s = xmlrpclib.Marshaller().dumps(f)
         self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, s)
 
+    def test_dotted_attribute(self):
+        # this will raise AttirebuteError because code don't want us to use
+        # private methods
+        self.assertRaises(AttributeError,
+                          SimpleXMLRPCServer.resolve_dotted_attribute, str, '__add')
+
+        self.assert_(SimpleXMLRPCServer.resolve_dotted_attribute(str, 'title'))
 
 class DateTimeTestCase(unittest.TestCase):
     def test_default(self):
@@ -432,14 +439,6 @@
                 # protocol error; provide additional information in test output
                 self.fail("%s\n%s" % (e, e.headers))
 
-    def test_dotted_attribute(self):
-        # this will raise AttirebuteError because code don't want us to use
-        # private methods
-        self.assertRaises(AttributeError,
-                          SimpleXMLRPCServer.resolve_dotted_attribute, str, '__add')
-
-        self.assert_(SimpleXMLRPCServer.resolve_dotted_attribute(str, 'title'))
-
 # This is a contrived way to make a failure occur on the server side
 # in order to test the _send_traceback_header flag on the server
 class FailingMessageClass(mimetools.Message):