def test_exposeClass(self):
        server = SimpleXMLRPCServer((HOST, PORT + 3))
        server.register_instance(MyService())
        ServerThread(server).start()

        # Access the exposed service.
        client = xmlrpclib.ServerProxy("http://%s:%d" % (HOST, PORT + 3))
        self.assertEqual(client.squared(10), 100)
Expose an entire class and test the _dispatch method.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_SimpleXMLRPCServer.py/SimpleXMLRPCServerTestCase.test_exposeClass