def HandleHandshake(self):
    nonce = self.NONCE_STORE.NewNonce()
    if not nonce:
      raise errors.DataServerError("Could not generate new nonces! Too many "
                                   "requests and/or clients.")
    self._Response(constants.RESPONSE_OK, nonce)
Tests set() method.
dataset/ETHPy150Open google/grr/grr/server/data_server/data_server.py/DataServerHandler.HandleHandshake--crossover with--dataset/ETHPy150Open StyleShare/flask-volatile/volatiletests/unit.py/set