def _RetrieveValues(self, values, callback):
    """Retrieves and verifies the specified values from Datastore database
    via the tornado web server.
    """
    def _VerifyResponse(val, cb, resp):
      self.assertEqual(resp.body, repr(val))
      cb()

    with util.Barrier(callback) as b:
      for val in values:
        self.http_client.fetch(
          httpclient.HTTPRequest(self.get_url('/datastore?k=k%d' % val), method='GET'),
          callback=partial(_VerifyResponse, val, b.Callback()))
dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/test/handler_test.py/HandlerTestCase._RetrieveValues/original