def _test():
    '''
    In this test, we'll hit a custom Zope/Plone script on a local Zope server.

    The output will give us this:
    [('authenticated', True), ('name', 'admin'), ('roles', ['Manager', 'Authenticated']), ('id', 'admin')]
    '''
    def callback(data):
        print data.items()
        reactor.stop()
    def errback(failure):
        #print failure.getErrorMessage()
        reactor.stop()
    server = AuthProxy('http://admin:admin@192.168.4.10:9673/site01/')
    d = server.callRemote('getXMLRPCUserInfo')
    d.addCallback(callback)
    d.addErrback(callback)
    reactor.run()

    In this test, we'll hit a custom Zope/Plone script on a local Zope server.

    The output will give us this:
    [('authenticated', True), ('name', 'admin'), ('roles', ['Manager', 'Authenticated']), ('id', 'admin')]
    
recipes/Python/473865_Authenticate/recipe-473865.py