'Verify that a PB server using a portal configured with a checker which
allows IAnonymous credentials can be logged into using IAnonymous
credentials.'

def test_anonymousLogin(self):

    self.portal.registerChecker(checkers.AllowAnonymousAccess())
    d = self.clientFactory.login(credentials.Anonymous(), 'BRAINS!')
    def cbLoggedIn(perspective):
        return perspective.callRemote('echo', 123)
    d.addCallback(cbLoggedIn)
    d.addCallback(self.assertEqual, 123)
    self.establishClientAndServer()
    self.pump.flush()
    return d
