'Verify that without an anonymous checker set up, anonymous login is
rejected.'

def test_anonymousLoginNotPermitted(self):

    self.portal.registerChecker(checkers.InMemoryUsernamePasswordDatabaseDontUse(user='pass'))
    d = self.clientFactory.login(credentials.Anonymous(), 'BRAINS!')
    self.assertFailure(d, UnhandledCredentials)
    def cleanup(ignore):
        errors = self.flushLoggedErrors(UnhandledCredentials)
        self.assertEqual(len(errors), 1)
    d.addCallback(cleanup)
    self.establishClientAndServer()
    self.pump.flush()
    return d
