def test_requestAvatarIdInvalidKey(self):
        def _checkKey(ignored):
            return False
        self.patch(self.checker, 'checkKey', _checkKey)
        d = self.checker.requestAvatarId(None);
        return self.assertFailure(d, UnauthorizedLogin)
If L{SSHPublicKeyDatabase.checkKey} returns False,
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/SSHPublicKeyDatabaseTests.test_requestAvatarIdInvalidKey