def test_requestAvatarIdNormalizeException(self):
        def _checkKey(ignored):
            return True
        self.patch(self.checker, 'checkKey', _checkKey)
        credentials = SSHPrivateKey(b'test', None, b'blob', b'sigData', b'sig')
        d = self.checker.requestAvatarId(credentials)
        def _verifyLoggedException(failure):
            errors = self.flushLoggedErrors(keys.BadKeyError)
            self.assertEqual(len(errors), 1)
            return failure
        d.addErrback(_verifyLoggedException)
        return self.assertFailure(d, UnauthorizedLogin)
Loops until the InstancePool is done watching for file changes.
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/SSHPublicKeyDatabaseTests.test_requestAvatarIdNormalizeException--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/server.py/BasicScalingServer._loop_watching_for_changes_and_idle_instances