'Like L{test_anonymousLogin} but against a portal with a checker for
both IAnonymous and IUsernamePassword.'

def test_anonymousLoginWithMultipleCheckers(self):

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